pb

package
v0.0.0-...-3898045 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 8 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 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) ValidateToken

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

Jump to

Keyboard shortcuts

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