Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
token-info.proto
It has these top-level messages:
VerifyRequest VerifyResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTokenInfoServer ¶
func RegisterTokenInfoServer(s *grpc.Server, srv TokenInfoServer)
Types ¶
type TokenInfoClient ¶
type TokenInfoClient interface {
VerifyToken(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error)
}
func NewTokenInfoClient ¶
func NewTokenInfoClient(cc *grpc.ClientConn) TokenInfoClient
type TokenInfoServer ¶
type TokenInfoServer interface {
VerifyToken(context.Context, *VerifyRequest) (*VerifyResponse, error)
}
type VerifyRequest ¶
type VerifyRequest struct { Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"` Params []string `protobuf:"bytes,2,rep,name=params" json:"params,omitempty"` }
func (*VerifyRequest) Descriptor ¶
func (*VerifyRequest) Descriptor() ([]byte, []int)
func (*VerifyRequest) GetParams ¶
func (m *VerifyRequest) GetParams() []string
func (*VerifyRequest) GetToken ¶
func (m *VerifyRequest) GetToken() string
func (*VerifyRequest) ProtoMessage ¶
func (*VerifyRequest) ProtoMessage()
func (*VerifyRequest) Reset ¶
func (m *VerifyRequest) Reset()
func (*VerifyRequest) String ¶
func (m *VerifyRequest) String() string
type VerifyResponse ¶
type VerifyResponse struct { Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"` }
func (*VerifyResponse) Descriptor ¶
func (*VerifyResponse) Descriptor() ([]byte, []int)
func (*VerifyResponse) GetStatus ¶
func (m *VerifyResponse) GetStatus() int32
func (*VerifyResponse) GetSuccess ¶
func (m *VerifyResponse) GetSuccess() bool
func (*VerifyResponse) ProtoMessage ¶
func (*VerifyResponse) ProtoMessage()
func (*VerifyResponse) Reset ¶
func (m *VerifyResponse) Reset()
func (*VerifyResponse) String ¶
func (m *VerifyResponse) String() string
Click to show internal directories.
Click to hide internal directories.