Versions in this module Expand all Collapse all v1 v1.0.1 Aug 4, 2019 v1.0.0 Aug 4, 2019 Changes in this version + var StatusData_Status_name = map[int32]string + var StatusData_Status_value = map[string]int32 + func RegisterJwtServiceServer(s *grpc.Server, srv JwtServiceServer) + type JwtServiceClient interface + Sign func(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) + Verify func(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) + func NewJwtServiceClient(cc *grpc.ClientConn) JwtServiceClient + type JwtServiceServer interface + Sign func(context.Context, *SignRequest) (*SignResponse, error) + Verify func(context.Context, *VerifyRequest) (*VerifyResponse, error) + type SignRequest struct + Jsondata []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SignRequest) Descriptor() ([]byte, []int) + func (*SignRequest) ProtoMessage() + func (m *SignRequest) GetJsondata() []byte + func (m *SignRequest) Reset() + func (m *SignRequest) String() string + func (m *SignRequest) XXX_DiscardUnknown() + func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignRequest) XXX_Merge(src proto.Message) + func (m *SignRequest) XXX_Size() int + func (m *SignRequest) XXX_Unmarshal(b []byte) error + type SignResponse struct + Data string + Status *StatusData + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SignResponse) Descriptor() ([]byte, []int) + func (*SignResponse) ProtoMessage() + func (m *SignResponse) GetData() string + func (m *SignResponse) GetStatus() *StatusData + func (m *SignResponse) Reset() + func (m *SignResponse) String() string + func (m *SignResponse) XXX_DiscardUnknown() + func (m *SignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignResponse) XXX_Merge(src proto.Message) + func (m *SignResponse) XXX_Size() int + func (m *SignResponse) XXX_Unmarshal(b []byte) error + type StatusData struct + Msg string + Status StatusData_Status + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*StatusData) Descriptor() ([]byte, []int) + func (*StatusData) ProtoMessage() + func (m *StatusData) GetMsg() string + func (m *StatusData) GetStatus() StatusData_Status + func (m *StatusData) Reset() + func (m *StatusData) String() string + func (m *StatusData) XXX_DiscardUnknown() + func (m *StatusData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *StatusData) XXX_Merge(src proto.Message) + func (m *StatusData) XXX_Size() int + func (m *StatusData) XXX_Unmarshal(b []byte) error + type StatusData_Status int32 + const StatusData_ERROR + const StatusData_SUCCEED + func (StatusData_Status) EnumDescriptor() ([]byte, []int) + func (x StatusData_Status) String() string + type UnimplementedJwtServiceServer struct + func (*UnimplementedJwtServiceServer) Sign(ctx context.Context, req *SignRequest) (*SignResponse, error) + func (*UnimplementedJwtServiceServer) Verify(ctx context.Context, req *VerifyRequest) (*VerifyResponse, error) + type VerifyRequest struct + Tokendata []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*VerifyRequest) Descriptor() ([]byte, []int) + func (*VerifyRequest) ProtoMessage() + func (m *VerifyRequest) GetTokendata() []byte + func (m *VerifyRequest) Reset() + func (m *VerifyRequest) String() string + func (m *VerifyRequest) XXX_DiscardUnknown() + func (m *VerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VerifyRequest) XXX_Merge(src proto.Message) + func (m *VerifyRequest) XXX_Size() int + func (m *VerifyRequest) XXX_Unmarshal(b []byte) error + type VerifyResponse struct + Data []byte + Status *StatusData + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*VerifyResponse) Descriptor() ([]byte, []int) + func (*VerifyResponse) ProtoMessage() + func (m *VerifyResponse) GetData() []byte + func (m *VerifyResponse) GetStatus() *StatusData + func (m *VerifyResponse) Reset() + func (m *VerifyResponse) String() string + func (m *VerifyResponse) XXX_DiscardUnknown() + func (m *VerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VerifyResponse) XXX_Merge(src proto.Message) + func (m *VerifyResponse) XXX_Size() int + func (m *VerifyResponse) XXX_Unmarshal(b []byte) error