pb package name add OpenIMServer

This commit is contained in:
withchao
2023-03-08 16:10:43 +08:00
parent ff6a503f53
commit 5813d13fe4
22 changed files with 1631 additions and 1614 deletions
+42 -42
View File
@@ -35,7 +35,7 @@ func (m *UserTokenReq) Reset() { *m = UserTokenReq{} }
func (m *UserTokenReq) String() string { return proto.CompactTextString(m) }
func (*UserTokenReq) ProtoMessage() {}
func (*UserTokenReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_dbaba8127a30b2f2, []int{0}
return fileDescriptor_auth_6fb89f4c8f0019ff, []int{0}
}
func (m *UserTokenReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserTokenReq.Unmarshal(m, b)
@@ -81,7 +81,7 @@ func (m *UserTokenResp) Reset() { *m = UserTokenResp{} }
func (m *UserTokenResp) String() string { return proto.CompactTextString(m) }
func (*UserTokenResp) ProtoMessage() {}
func (*UserTokenResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_dbaba8127a30b2f2, []int{1}
return fileDescriptor_auth_6fb89f4c8f0019ff, []int{1}
}
func (m *UserTokenResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserTokenResp.Unmarshal(m, b)
@@ -127,7 +127,7 @@ func (m *ForceLogoutReq) Reset() { *m = ForceLogoutReq{} }
func (m *ForceLogoutReq) String() string { return proto.CompactTextString(m) }
func (*ForceLogoutReq) ProtoMessage() {}
func (*ForceLogoutReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_dbaba8127a30b2f2, []int{2}
return fileDescriptor_auth_6fb89f4c8f0019ff, []int{2}
}
func (m *ForceLogoutReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ForceLogoutReq.Unmarshal(m, b)
@@ -171,7 +171,7 @@ func (m *ForceLogoutResp) Reset() { *m = ForceLogoutResp{} }
func (m *ForceLogoutResp) String() string { return proto.CompactTextString(m) }
func (*ForceLogoutResp) ProtoMessage() {}
func (*ForceLogoutResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_dbaba8127a30b2f2, []int{3}
return fileDescriptor_auth_6fb89f4c8f0019ff, []int{3}
}
func (m *ForceLogoutResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ForceLogoutResp.Unmarshal(m, b)
@@ -202,7 +202,7 @@ func (m *ParseTokenReq) Reset() { *m = ParseTokenReq{} }
func (m *ParseTokenReq) String() string { return proto.CompactTextString(m) }
func (*ParseTokenReq) ProtoMessage() {}
func (*ParseTokenReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_dbaba8127a30b2f2, []int{4}
return fileDescriptor_auth_6fb89f4c8f0019ff, []int{4}
}
func (m *ParseTokenReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParseTokenReq.Unmarshal(m, b)
@@ -242,7 +242,7 @@ func (m *ParseTokenResp) Reset() { *m = ParseTokenResp{} }
func (m *ParseTokenResp) String() string { return proto.CompactTextString(m) }
func (*ParseTokenResp) ProtoMessage() {}
func (*ParseTokenResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_dbaba8127a30b2f2, []int{5}
return fileDescriptor_auth_6fb89f4c8f0019ff, []int{5}
}
func (m *ParseTokenResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParseTokenResp.Unmarshal(m, b)
@@ -284,12 +284,12 @@ func (m *ParseTokenResp) GetExpireTimeSeconds() int64 {
}
func init() {
proto.RegisterType((*UserTokenReq)(nil), "pbAuth.userTokenReq")
proto.RegisterType((*UserTokenResp)(nil), "pbAuth.userTokenResp")
proto.RegisterType((*ForceLogoutReq)(nil), "pbAuth.forceLogoutReq")
proto.RegisterType((*ForceLogoutResp)(nil), "pbAuth.forceLogoutResp")
proto.RegisterType((*ParseTokenReq)(nil), "pbAuth.parseTokenReq")
proto.RegisterType((*ParseTokenResp)(nil), "pbAuth.parseTokenResp")
proto.RegisterType((*UserTokenReq)(nil), "OpenIMServer.pbAuth.userTokenReq")
proto.RegisterType((*UserTokenResp)(nil), "OpenIMServer.pbAuth.userTokenResp")
proto.RegisterType((*ForceLogoutReq)(nil), "OpenIMServer.pbAuth.forceLogoutReq")
proto.RegisterType((*ForceLogoutResp)(nil), "OpenIMServer.pbAuth.forceLogoutResp")
proto.RegisterType((*ParseTokenReq)(nil), "OpenIMServer.pbAuth.parseTokenReq")
proto.RegisterType((*ParseTokenResp)(nil), "OpenIMServer.pbAuth.parseTokenResp")
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -321,7 +321,7 @@ func NewAuthClient(cc *grpc.ClientConn) AuthClient {
func (c *authClient) UserToken(ctx context.Context, in *UserTokenReq, opts ...grpc.CallOption) (*UserTokenResp, error) {
out := new(UserTokenResp)
err := grpc.Invoke(ctx, "/pbAuth.Auth/userToken", in, out, c.cc, opts...)
err := grpc.Invoke(ctx, "/OpenIMServer.pbAuth.Auth/userToken", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
@@ -330,7 +330,7 @@ func (c *authClient) UserToken(ctx context.Context, in *UserTokenReq, opts ...gr
func (c *authClient) ForceLogout(ctx context.Context, in *ForceLogoutReq, opts ...grpc.CallOption) (*ForceLogoutResp, error) {
out := new(ForceLogoutResp)
err := grpc.Invoke(ctx, "/pbAuth.Auth/forceLogout", in, out, c.cc, opts...)
err := grpc.Invoke(ctx, "/OpenIMServer.pbAuth.Auth/forceLogout", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
@@ -339,7 +339,7 @@ func (c *authClient) ForceLogout(ctx context.Context, in *ForceLogoutReq, opts .
func (c *authClient) ParseToken(ctx context.Context, in *ParseTokenReq, opts ...grpc.CallOption) (*ParseTokenResp, error) {
out := new(ParseTokenResp)
err := grpc.Invoke(ctx, "/pbAuth.Auth/parseToken", in, out, c.cc, opts...)
err := grpc.Invoke(ctx, "/OpenIMServer.pbAuth.Auth/parseToken", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
@@ -371,7 +371,7 @@ func _Auth_UserToken_Handler(srv interface{}, ctx context.Context, dec func(inte
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pbAuth.Auth/UserToken",
FullMethod: "/OpenIMServer.pbAuth.Auth/UserToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).UserToken(ctx, req.(*UserTokenReq))
@@ -389,7 +389,7 @@ func _Auth_ForceLogout_Handler(srv interface{}, ctx context.Context, dec func(in
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pbAuth.Auth/ForceLogout",
FullMethod: "/OpenIMServer.pbAuth.Auth/ForceLogout",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).ForceLogout(ctx, req.(*ForceLogoutReq))
@@ -407,7 +407,7 @@ func _Auth_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(int
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pbAuth.Auth/ParseToken",
FullMethod: "/OpenIMServer.pbAuth.Auth/ParseToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).ParseToken(ctx, req.(*ParseTokenReq))
@@ -416,7 +416,7 @@ func _Auth_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(int
}
var _Auth_serviceDesc = grpc.ServiceDesc{
ServiceName: "pbAuth.Auth",
ServiceName: "OpenIMServer.pbAuth.Auth",
HandlerType: (*AuthServer)(nil),
Methods: []grpc.MethodDesc{
{
@@ -436,28 +436,28 @@ var _Auth_serviceDesc = grpc.ServiceDesc{
Metadata: "auth/auth.proto",
}
func init() { proto.RegisterFile("auth/auth.proto", fileDescriptor_auth_dbaba8127a30b2f2) }
func init() { proto.RegisterFile("auth/auth.proto", fileDescriptor_auth_6fb89f4c8f0019ff) }
var fileDescriptor_auth_dbaba8127a30b2f2 = []byte{
// 311 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x4b, 0x4b, 0xf3, 0x40,
0x14, 0x65, 0xbe, 0x3e, 0xf8, 0x7a, 0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x98,
0xe9, 0x81, 0x16, 0xfc, 0x3f, 0x24, 0xc9, 0xdd, 0x0b, 0x5c, 0xdd, 0xbb, 0xfe, 0x4b, 0xef, 0xcb,
0x4f, 0x06, 0xf5, 0x64, 0x3b, 0x78, 0x0d, 0xad, 0x62, 0xaa, 0xd8, 0x77, 0xb3, 0x9d, 0xb9, 0xe6,
0xc2, 0xac, 0x93, 0x0a, 0x56, 0x11, 0xde, 0xc0, 0x91, 0x51, 0x18, 0x07, 0x07, 0x55, 0x79, 0x9e,
0xd6, 0x69, 0x25, 0xaf, 0x08, 0x27, 0x00, 0xdf, 0xb5, 0xb1, 0x30, 0x29, 0x4d, 0xcc, 0x1a, 0x54,
0xd1, 0x8a, 0xee, 0x46, 0x2f, 0x67, 0xcf, 0xc4, 0x23, 0xff, 0xc9, 0xa3, 0xdd, 0xda, 0x4b, 0x0f,
0x2e, 0xbd, 0xbd, 0x49, 0x26, 0x5f, 0x34, 0x53, 0xea, 0xea, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xc0,
0x33, 0xd1, 0x21, 0x96, 0x02, 0x00, 0x00,
var fileDescriptor_auth_6fb89f4c8f0019ff = []byte{
// 320 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xdf, 0x4b, 0x02, 0x41,
0x10, 0xc7, 0x59, 0x7f, 0x91, 0x53, 0x2a, 0x4e, 0x11, 0x72, 0x84, 0xd8, 0x5a, 0xe0, 0x43, 0x9c,
0x50, 0x8f, 0x3d, 0x15, 0x12, 0x09, 0x45, 0x70, 0x1a, 0x44, 0x6f, 0x6a, 0xe3, 0x0f, 0x4c, 0x77,
0xda, 0xdd, 0x8b, 0xfe, 0x87, 0xfe, 0xe9, 0x38, 0xb5, 0x6b, 0xa5, 0x8b, 0x7b, 0xe8, 0xe5, 0xe0,
0xbb, 0xf7, 0xd9, 0x9d, 0xef, 0x7c, 0x67, 0xa0, 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