Documentation
¶
Index ¶
- func RegisterAuthenticationServiceServer(s *grpc.Server, srv AuthenticationServiceServer)
- type AuthenticationServiceClient
- type AuthenticationServiceServer
- type GetTokenInfoRequest
- func (*GetTokenInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetTokenInfoRequest) GetToken() string
- func (*GetTokenInfoRequest) ProtoMessage()
- func (m *GetTokenInfoRequest) Reset()
- func (m *GetTokenInfoRequest) String() string
- func (m *GetTokenInfoRequest) XXX_DiscardUnknown()
- func (m *GetTokenInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetTokenInfoRequest) XXX_Size() int
- func (m *GetTokenInfoRequest) XXX_Unmarshal(b []byte) error
- type GetTokenInfoResponse
- func (*GetTokenInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetTokenInfoResponse) GetClientId() string
- func (m *GetTokenInfoResponse) GetExpiresIn() int64
- func (m *GetTokenInfoResponse) GetUserId() string
- func (*GetTokenInfoResponse) ProtoMessage()
- func (m *GetTokenInfoResponse) Reset()
- func (m *GetTokenInfoResponse) String() string
- func (m *GetTokenInfoResponse) XXX_DiscardUnknown()
- func (m *GetTokenInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetTokenInfoResponse) XXX_Size() int
- func (m *GetTokenInfoResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedAuthenticationServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s *grpc.Server, srv AuthenticationServiceServer)
Types ¶
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface {
GetTokenInfo(ctx context.Context, in *GetTokenInfoRequest, opts ...grpc.CallOption) (*GetTokenInfoResponse, error)
}
AuthenticationServiceClient is the client API for AuthenticationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthenticationServiceClient ¶
func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient
type AuthenticationServiceServer ¶
type AuthenticationServiceServer interface {
GetTokenInfo(context.Context, *GetTokenInfoRequest) (*GetTokenInfoResponse, error)
}
AuthenticationServiceServer is the server API for AuthenticationService service.
type GetTokenInfoRequest ¶
type GetTokenInfoRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetTokenInfoRequest is passed when dispatching
func (*GetTokenInfoRequest) Descriptor ¶
func (*GetTokenInfoRequest) Descriptor() ([]byte, []int)
func (*GetTokenInfoRequest) GetToken ¶
func (m *GetTokenInfoRequest) GetToken() string
func (*GetTokenInfoRequest) ProtoMessage ¶
func (*GetTokenInfoRequest) ProtoMessage()
func (*GetTokenInfoRequest) Reset ¶
func (m *GetTokenInfoRequest) Reset()
func (*GetTokenInfoRequest) String ¶
func (m *GetTokenInfoRequest) String() string
func (*GetTokenInfoRequest) XXX_DiscardUnknown ¶
func (m *GetTokenInfoRequest) XXX_DiscardUnknown()
func (*GetTokenInfoRequest) XXX_Marshal ¶
func (m *GetTokenInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenInfoRequest) XXX_Merge ¶
func (m *GetTokenInfoRequest) XXX_Merge(src proto.Message)
func (*GetTokenInfoRequest) XXX_Size ¶
func (m *GetTokenInfoRequest) XXX_Size() int
func (*GetTokenInfoRequest) XXX_Unmarshal ¶
func (m *GetTokenInfoRequest) XXX_Unmarshal(b []byte) error
type GetTokenInfoResponse ¶
type GetTokenInfoResponse struct { ExpiresIn int64 `protobuf:"varint,1,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=clientId,proto3" json:"clientId,omitempty"` UserId string `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetTokenInfoResponse return auth token information after successful verification
func (*GetTokenInfoResponse) Descriptor ¶
func (*GetTokenInfoResponse) Descriptor() ([]byte, []int)
func (*GetTokenInfoResponse) GetClientId ¶
func (m *GetTokenInfoResponse) GetClientId() string
func (*GetTokenInfoResponse) GetExpiresIn ¶
func (m *GetTokenInfoResponse) GetExpiresIn() int64
func (*GetTokenInfoResponse) GetUserId ¶
func (m *GetTokenInfoResponse) GetUserId() string
func (*GetTokenInfoResponse) ProtoMessage ¶
func (*GetTokenInfoResponse) ProtoMessage()
func (*GetTokenInfoResponse) Reset ¶
func (m *GetTokenInfoResponse) Reset()
func (*GetTokenInfoResponse) String ¶
func (m *GetTokenInfoResponse) String() string
func (*GetTokenInfoResponse) XXX_DiscardUnknown ¶
func (m *GetTokenInfoResponse) XXX_DiscardUnknown()
func (*GetTokenInfoResponse) XXX_Marshal ¶
func (m *GetTokenInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenInfoResponse) XXX_Merge ¶
func (m *GetTokenInfoResponse) XXX_Merge(src proto.Message)
func (*GetTokenInfoResponse) XXX_Size ¶
func (m *GetTokenInfoResponse) XXX_Size() int
func (*GetTokenInfoResponse) XXX_Unmarshal ¶
func (m *GetTokenInfoResponse) XXX_Unmarshal(b []byte) error
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthenticationServiceServer) GetTokenInfo ¶
func (*UnimplementedAuthenticationServiceServer) GetTokenInfo(ctx context.Context, req *GetTokenInfoRequest) (*GetTokenInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.