Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceV1Server(s grpc.ServiceRegistrar, srv AuthServiceV1Server)
- type AuthServiceV1Client
- type AuthServiceV1Server
- type CheckReqV1
- type TokenClaimsV1
- func (*TokenClaimsV1) Descriptor() ([]byte, []int)deprecated
- func (x *TokenClaimsV1) GetKey() string
- func (x *TokenClaimsV1) GetRid() int32
- func (x *TokenClaimsV1) GetType() string
- func (x *TokenClaimsV1) GetUid() uint64
- func (*TokenClaimsV1) ProtoMessage()
- func (x *TokenClaimsV1) ProtoReflect() protoreflect.Message
- func (x *TokenClaimsV1) Reset()
- func (x *TokenClaimsV1) String() string
- type UnimplementedAuthServiceV1Server
- type UnsafeAuthServiceV1Server
Constants ¶
This section is empty.
Variables ¶
var AuthServiceV1_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authServiceV1", HandlerType: (*AuthServiceV1Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckV1", Handler: _AuthServiceV1_CheckV1_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth_v1.proto", }
AuthServiceV1_ServiceDesc is the grpc.ServiceDesc for AuthServiceV1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceV1Server ¶
func RegisterAuthServiceV1Server(s grpc.ServiceRegistrar, srv AuthServiceV1Server)
Types ¶
type AuthServiceV1Client ¶
type AuthServiceV1Client interface {
CheckV1(ctx context.Context, in *CheckReqV1, opts ...grpc.CallOption) (*TokenClaimsV1, error)
}
AuthServiceV1Client is the client API for AuthServiceV1 service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthServiceV1Client ¶
func NewAuthServiceV1Client(cc grpc.ClientConnInterface) AuthServiceV1Client
type AuthServiceV1Server ¶
type AuthServiceV1Server interface { CheckV1(context.Context, *CheckReqV1) (*TokenClaimsV1, error) // contains filtered or unexported methods }
AuthServiceV1Server is the server API for AuthServiceV1 service. All implementations must embed UnimplementedAuthServiceV1Server for forward compatibility
type CheckReqV1 ¶ added in v1.4.3
type CheckReqV1 struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*CheckReqV1) Descriptor
deprecated
added in
v1.4.3
func (*CheckReqV1) Descriptor() ([]byte, []int)
Deprecated: Use CheckReqV1.ProtoReflect.Descriptor instead.
func (*CheckReqV1) GetToken ¶ added in v1.4.3
func (x *CheckReqV1) GetToken() string
func (*CheckReqV1) GetType ¶ added in v1.4.3
func (x *CheckReqV1) GetType() string
func (*CheckReqV1) ProtoMessage ¶ added in v1.4.3
func (*CheckReqV1) ProtoMessage()
func (*CheckReqV1) ProtoReflect ¶ added in v1.4.3
func (x *CheckReqV1) ProtoReflect() protoreflect.Message
func (*CheckReqV1) Reset ¶ added in v1.4.3
func (x *CheckReqV1) Reset()
func (*CheckReqV1) String ¶ added in v1.4.3
func (x *CheckReqV1) String() string
type TokenClaimsV1 ¶ added in v1.4.3
type TokenClaimsV1 struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Rid int32 `protobuf:"varint,2,opt,name=rid,proto3" json:"rid,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Key *string `protobuf:"bytes,4,opt,name=key,proto3,oneof" json:"key,omitempty"` // contains filtered or unexported fields }
func (*TokenClaimsV1) Descriptor
deprecated
added in
v1.4.3
func (*TokenClaimsV1) Descriptor() ([]byte, []int)
Deprecated: Use TokenClaimsV1.ProtoReflect.Descriptor instead.
func (*TokenClaimsV1) GetKey ¶ added in v1.4.3
func (x *TokenClaimsV1) GetKey() string
func (*TokenClaimsV1) GetRid ¶ added in v1.5.4
func (x *TokenClaimsV1) GetRid() int32
func (*TokenClaimsV1) GetType ¶ added in v1.4.3
func (x *TokenClaimsV1) GetType() string
func (*TokenClaimsV1) GetUid ¶ added in v1.4.3
func (x *TokenClaimsV1) GetUid() uint64
func (*TokenClaimsV1) ProtoMessage ¶ added in v1.4.3
func (*TokenClaimsV1) ProtoMessage()
func (*TokenClaimsV1) ProtoReflect ¶ added in v1.4.3
func (x *TokenClaimsV1) ProtoReflect() protoreflect.Message
func (*TokenClaimsV1) Reset ¶ added in v1.4.3
func (x *TokenClaimsV1) Reset()
func (*TokenClaimsV1) String ¶ added in v1.4.3
func (x *TokenClaimsV1) String() string
type UnimplementedAuthServiceV1Server ¶
type UnimplementedAuthServiceV1Server struct { }
UnimplementedAuthServiceV1Server must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceV1Server) CheckV1 ¶
func (UnimplementedAuthServiceV1Server) CheckV1(context.Context, *CheckReqV1) (*TokenClaimsV1, error)
type UnsafeAuthServiceV1Server ¶
type UnsafeAuthServiceV1Server interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceV1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceV1Server will result in compilation errors.