jwt

package
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL