Documentation ¶
Index ¶
- func RegisterTokenServer(s *grpc.Server, srv TokenServer)
- type GetTokenRequest
- func (*GetTokenRequest) Descriptor() ([]byte, []int)
- func (m *GetTokenRequest) GetAudience() string
- func (m *GetTokenRequest) GetExp() int64
- func (*GetTokenRequest) ProtoMessage()
- func (m *GetTokenRequest) Reset()
- func (m *GetTokenRequest) String() string
- func (m *GetTokenRequest) XXX_DiscardUnknown()
- func (m *GetTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenRequest) XXX_Merge(src proto.Message)
- func (m *GetTokenRequest) XXX_Size() int
- func (m *GetTokenRequest) XXX_Unmarshal(b []byte) error
- type GetTokenResponse
- func (*GetTokenResponse) Descriptor() ([]byte, []int)
- func (m *GetTokenResponse) GetToken() string
- func (*GetTokenResponse) ProtoMessage()
- func (m *GetTokenResponse) Reset()
- func (m *GetTokenResponse) String() string
- func (m *GetTokenResponse) XXX_DiscardUnknown()
- func (m *GetTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenResponse) XXX_Merge(src proto.Message)
- func (m *GetTokenResponse) XXX_Size() int
- func (m *GetTokenResponse) XXX_Unmarshal(b []byte) error
- type TokenClient
- type TokenServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTokenServer ¶
func RegisterTokenServer(s *grpc.Server, srv TokenServer)
Types ¶
type GetTokenRequest ¶
type GetTokenRequest struct { Audience string `protobuf:"bytes,1,opt,name=audience,proto3" json:"audience,omitempty"` Exp int64 `protobuf:"varint,2,opt,name=exp,proto3" json:"exp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
获取token请求
func (*GetTokenRequest) Descriptor ¶
func (*GetTokenRequest) Descriptor() ([]byte, []int)
func (*GetTokenRequest) GetAudience ¶
func (m *GetTokenRequest) GetAudience() string
func (*GetTokenRequest) GetExp ¶
func (m *GetTokenRequest) GetExp() int64
func (*GetTokenRequest) ProtoMessage ¶
func (*GetTokenRequest) ProtoMessage()
func (*GetTokenRequest) Reset ¶
func (m *GetTokenRequest) Reset()
func (*GetTokenRequest) String ¶
func (m *GetTokenRequest) String() string
func (*GetTokenRequest) XXX_DiscardUnknown ¶
func (m *GetTokenRequest) XXX_DiscardUnknown()
func (*GetTokenRequest) XXX_Marshal ¶
func (m *GetTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenRequest) XXX_Merge ¶
func (m *GetTokenRequest) XXX_Merge(src proto.Message)
func (*GetTokenRequest) XXX_Size ¶
func (m *GetTokenRequest) XXX_Size() int
func (*GetTokenRequest) XXX_Unmarshal ¶
func (m *GetTokenRequest) XXX_Unmarshal(b []byte) error
type GetTokenResponse ¶
type GetTokenResponse 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:"-"` }
获取token返回
func (*GetTokenResponse) Descriptor ¶
func (*GetTokenResponse) Descriptor() ([]byte, []int)
func (*GetTokenResponse) GetToken ¶
func (m *GetTokenResponse) GetToken() string
func (*GetTokenResponse) ProtoMessage ¶
func (*GetTokenResponse) ProtoMessage()
func (*GetTokenResponse) Reset ¶
func (m *GetTokenResponse) Reset()
func (*GetTokenResponse) String ¶
func (m *GetTokenResponse) String() string
func (*GetTokenResponse) XXX_DiscardUnknown ¶
func (m *GetTokenResponse) XXX_DiscardUnknown()
func (*GetTokenResponse) XXX_Marshal ¶
func (m *GetTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenResponse) XXX_Merge ¶
func (m *GetTokenResponse) XXX_Merge(src proto.Message)
func (*GetTokenResponse) XXX_Size ¶
func (m *GetTokenResponse) XXX_Size() int
func (*GetTokenResponse) XXX_Unmarshal ¶
func (m *GetTokenResponse) XXX_Unmarshal(b []byte) error
type TokenClient ¶
type TokenClient interface {
GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenResponse, error)
}
TokenClient is the client API for Token service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTokenClient ¶
func NewTokenClient(cc *grpc.ClientConn) TokenClient
type TokenServer ¶
type TokenServer interface {
GetToken(context.Context, *GetTokenRequest) (*GetTokenResponse, error)
}
TokenServer is the server API for Token service.
Click to show internal directories.
Click to hide internal directories.