Documentation
¶
Index ¶
- func RegisterTokenServer(s *grpc.Server, srv TokenServer)
- type GenerateTokenRequest
- func (*GenerateTokenRequest) Descriptor() ([]byte, []int)
- func (m *GenerateTokenRequest) GetClaims() map[string]*any.Any
- func (m *GenerateTokenRequest) GetExpiresIn() uint64
- func (*GenerateTokenRequest) ProtoMessage()
- func (m *GenerateTokenRequest) Reset()
- func (m *GenerateTokenRequest) String() string
- func (m *GenerateTokenRequest) XXX_DiscardUnknown()
- func (m *GenerateTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenerateTokenRequest) XXX_Merge(src proto.Message)
- func (m *GenerateTokenRequest) XXX_Size() int
- func (m *GenerateTokenRequest) XXX_Unmarshal(b []byte) error
- type GenerateTokenResponse
- func (*GenerateTokenResponse) Descriptor() ([]byte, []int)
- func (m *GenerateTokenResponse) GetToken() string
- func (*GenerateTokenResponse) ProtoMessage()
- func (m *GenerateTokenResponse) Reset()
- func (m *GenerateTokenResponse) String() string
- func (m *GenerateTokenResponse) XXX_DiscardUnknown()
- func (m *GenerateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenerateTokenResponse) XXX_Merge(src proto.Message)
- func (m *GenerateTokenResponse) XXX_Size() int
- func (m *GenerateTokenResponse) XXX_Unmarshal(b []byte) error
- type TokenClient
- type TokenServer
- type UnimplementedTokenServer
- type ValidateTokenRequest
- func (*ValidateTokenRequest) Descriptor() ([]byte, []int)
- func (m *ValidateTokenRequest) GetToken() string
- func (*ValidateTokenRequest) ProtoMessage()
- func (m *ValidateTokenRequest) Reset()
- func (m *ValidateTokenRequest) String() string
- func (m *ValidateTokenRequest) XXX_DiscardUnknown()
- func (m *ValidateTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidateTokenRequest) XXX_Merge(src proto.Message)
- func (m *ValidateTokenRequest) XXX_Size() int
- func (m *ValidateTokenRequest) XXX_Unmarshal(b []byte) error
- type ValidateTokenResponse
- func (*ValidateTokenResponse) Descriptor() ([]byte, []int)
- func (m *ValidateTokenResponse) GetClaims() map[string]*any.Any
- func (*ValidateTokenResponse) ProtoMessage()
- func (m *ValidateTokenResponse) Reset()
- func (m *ValidateTokenResponse) String() string
- func (m *ValidateTokenResponse) XXX_DiscardUnknown()
- func (m *ValidateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidateTokenResponse) XXX_Merge(src proto.Message)
- func (m *ValidateTokenResponse) XXX_Size() int
- func (m *ValidateTokenResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTokenServer ¶
func RegisterTokenServer(s *grpc.Server, srv TokenServer)
Types ¶
type GenerateTokenRequest ¶
type GenerateTokenRequest struct { ExpiresIn uint64 `protobuf:"varint,1,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"` Claims map[string]*any.Any `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GenerateTokenRequest) Descriptor ¶
func (*GenerateTokenRequest) Descriptor() ([]byte, []int)
func (*GenerateTokenRequest) GetClaims ¶
func (m *GenerateTokenRequest) GetClaims() map[string]*any.Any
func (*GenerateTokenRequest) GetExpiresIn ¶
func (m *GenerateTokenRequest) GetExpiresIn() uint64
func (*GenerateTokenRequest) ProtoMessage ¶
func (*GenerateTokenRequest) ProtoMessage()
func (*GenerateTokenRequest) Reset ¶
func (m *GenerateTokenRequest) Reset()
func (*GenerateTokenRequest) String ¶
func (m *GenerateTokenRequest) String() string
func (*GenerateTokenRequest) XXX_DiscardUnknown ¶
func (m *GenerateTokenRequest) XXX_DiscardUnknown()
func (*GenerateTokenRequest) XXX_Marshal ¶
func (m *GenerateTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenerateTokenRequest) XXX_Merge ¶
func (m *GenerateTokenRequest) XXX_Merge(src proto.Message)
func (*GenerateTokenRequest) XXX_Size ¶
func (m *GenerateTokenRequest) XXX_Size() int
func (*GenerateTokenRequest) XXX_Unmarshal ¶
func (m *GenerateTokenRequest) XXX_Unmarshal(b []byte) error
type GenerateTokenResponse ¶
type GenerateTokenResponse 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:"-"` }
func (*GenerateTokenResponse) Descriptor ¶
func (*GenerateTokenResponse) Descriptor() ([]byte, []int)
func (*GenerateTokenResponse) GetToken ¶
func (m *GenerateTokenResponse) GetToken() string
func (*GenerateTokenResponse) ProtoMessage ¶
func (*GenerateTokenResponse) ProtoMessage()
func (*GenerateTokenResponse) Reset ¶
func (m *GenerateTokenResponse) Reset()
func (*GenerateTokenResponse) String ¶
func (m *GenerateTokenResponse) String() string
func (*GenerateTokenResponse) XXX_DiscardUnknown ¶
func (m *GenerateTokenResponse) XXX_DiscardUnknown()
func (*GenerateTokenResponse) XXX_Marshal ¶
func (m *GenerateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenerateTokenResponse) XXX_Merge ¶
func (m *GenerateTokenResponse) XXX_Merge(src proto.Message)
func (*GenerateTokenResponse) XXX_Size ¶
func (m *GenerateTokenResponse) XXX_Size() int
func (*GenerateTokenResponse) XXX_Unmarshal ¶
func (m *GenerateTokenResponse) XXX_Unmarshal(b []byte) error
type TokenClient ¶
type TokenClient interface { GenerateToken(ctx context.Context, in *GenerateTokenRequest, opts ...grpc.CallOption) (*GenerateTokenResponse, error) ValidateToken(ctx context.Context, in *ValidateTokenRequest, opts ...grpc.CallOption) (*ValidateTokenResponse, 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 { GenerateToken(context.Context, *GenerateTokenRequest) (*GenerateTokenResponse, error) ValidateToken(context.Context, *ValidateTokenRequest) (*ValidateTokenResponse, error) }
TokenServer is the server API for Token service.
type UnimplementedTokenServer ¶
type UnimplementedTokenServer struct { }
UnimplementedTokenServer can be embedded to have forward compatible implementations.
func (*UnimplementedTokenServer) GenerateToken ¶
func (*UnimplementedTokenServer) GenerateToken(ctx context.Context, req *GenerateTokenRequest) (*GenerateTokenResponse, error)
func (*UnimplementedTokenServer) ValidateToken ¶
func (*UnimplementedTokenServer) ValidateToken(ctx context.Context, req *ValidateTokenRequest) (*ValidateTokenResponse, error)
type ValidateTokenRequest ¶
type ValidateTokenRequest 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:"-"` }
func (*ValidateTokenRequest) Descriptor ¶
func (*ValidateTokenRequest) Descriptor() ([]byte, []int)
func (*ValidateTokenRequest) GetToken ¶
func (m *ValidateTokenRequest) GetToken() string
func (*ValidateTokenRequest) ProtoMessage ¶
func (*ValidateTokenRequest) ProtoMessage()
func (*ValidateTokenRequest) Reset ¶
func (m *ValidateTokenRequest) Reset()
func (*ValidateTokenRequest) String ¶
func (m *ValidateTokenRequest) String() string
func (*ValidateTokenRequest) XXX_DiscardUnknown ¶
func (m *ValidateTokenRequest) XXX_DiscardUnknown()
func (*ValidateTokenRequest) XXX_Marshal ¶
func (m *ValidateTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidateTokenRequest) XXX_Merge ¶
func (m *ValidateTokenRequest) XXX_Merge(src proto.Message)
func (*ValidateTokenRequest) XXX_Size ¶
func (m *ValidateTokenRequest) XXX_Size() int
func (*ValidateTokenRequest) XXX_Unmarshal ¶
func (m *ValidateTokenRequest) XXX_Unmarshal(b []byte) error
type ValidateTokenResponse ¶
type ValidateTokenResponse struct { Claims map[string]*any.Any `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ValidateTokenResponse) Descriptor ¶
func (*ValidateTokenResponse) Descriptor() ([]byte, []int)
func (*ValidateTokenResponse) GetClaims ¶
func (m *ValidateTokenResponse) GetClaims() map[string]*any.Any
func (*ValidateTokenResponse) ProtoMessage ¶
func (*ValidateTokenResponse) ProtoMessage()
func (*ValidateTokenResponse) Reset ¶
func (m *ValidateTokenResponse) Reset()
func (*ValidateTokenResponse) String ¶
func (m *ValidateTokenResponse) String() string
func (*ValidateTokenResponse) XXX_DiscardUnknown ¶
func (m *ValidateTokenResponse) XXX_DiscardUnknown()
func (*ValidateTokenResponse) XXX_Marshal ¶
func (m *ValidateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidateTokenResponse) XXX_Merge ¶
func (m *ValidateTokenResponse) XXX_Merge(src proto.Message)
func (*ValidateTokenResponse) XXX_Size ¶
func (m *ValidateTokenResponse) XXX_Size() int
func (*ValidateTokenResponse) XXX_Unmarshal ¶
func (m *ValidateTokenResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.