Versions in this module Expand all Collapse all v0 v0.2.0 Jul 12, 2019 v0.1.0 Jan 30, 2019 Changes in this version + func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) + func RegisterAuthServer(s *grpc.Server, srv AuthServer) + type AuthClient interface + VerifyToken func(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error) + func NewAuthClient(cc *grpc.ClientConn) AuthClient + type AuthHandler interface + VerifyToken func(context.Context, *Request, *Result) error + type AuthServer interface + VerifyToken func(context.Context, *Request) (*Result, error) + type AuthService interface + VerifyToken func(ctx context.Context, in *Request, opts ...client.CallOption) (*Result, error) + func NewAuthService(serviceName string, c client.Client) AuthService + type Customer struct + AuthToken string + Id int32 + func (*Customer) Descriptor() ([]byte, []int) + func (*Customer) ProtoMessage() + func (m *Customer) GetAuthToken() string + func (m *Customer) GetId() int32 + func (m *Customer) Reset() + func (m *Customer) String() string + type Request struct + AuthToken string + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (m *Request) GetAuthToken() string + func (m *Request) Reset() + func (m *Request) String() string + type Result struct + Customer *Customer + func (*Result) Descriptor() ([]byte, []int) + func (*Result) ProtoMessage() + func (m *Result) GetCustomer() *Customer + func (m *Result) Reset() + func (m *Result) String() string