Documentation ¶
Index ¶
- Variables
- func NewAuthEndpoints() []*api.Endpoint
- func NewAuthOpenAPI() *registry.OpenAPI
- func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- type AuthClient
- type AuthHandler
- type AuthServer
- type AuthService
- type UnimplementedAuthServer
- type VerifyRequest
- func (*VerifyRequest) Descriptor() ([]byte, []int)
- func (m *VerifyRequest) GetToken() string
- func (m *VerifyRequest) Marshal() (dAtA []byte, err error)
- func (m *VerifyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *VerifyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VerifyRequest) ProtoMessage()
- func (m *VerifyRequest) Reset()
- func (m *VerifyRequest) Size() (n int)
- func (m *VerifyRequest) String() string
- func (m *VerifyRequest) Unmarshal(dAtA []byte) error
- 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
- func (*VerifyResponse) Descriptor() ([]byte, []int)
- func (m *VerifyResponse) Marshal() (dAtA []byte, err error)
- func (m *VerifyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *VerifyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VerifyResponse) ProtoMessage()
- func (m *VerifyResponse) Reset()
- func (m *VerifyResponse) Size() (n int)
- func (m *VerifyResponse) String() string
- func (m *VerifyResponse) Unmarshal(dAtA []byte) error
- 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
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewAuthOpenAPI ¶ added in v0.8.4
Swagger OpenAPI 3.0 for Auth service
func RegisterAuthHandler ¶
func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface {
Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error)
}
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthHandler ¶
type AuthHandler interface {
Verify(context.Context, *VerifyRequest, *VerifyResponse) error
}
Server API for Auth service
type AuthServer ¶
type AuthServer interface {
Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
}
AuthServer is the server API for Auth service.
type AuthService ¶
type AuthService interface {
Verify(ctx context.Context, in *VerifyRequest, opts ...client.CallOption) (*VerifyResponse, error)
}
Client API for Auth service
func NewAuthService ¶
func NewAuthService(name string, c client.Client) AuthService
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) Verify ¶
func (*UnimplementedAuthServer) Verify(ctx context.Context, req *VerifyRequest) (*VerifyResponse, error)
type VerifyRequest ¶
type VerifyRequest struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}
func (*VerifyRequest) Descriptor ¶
func (*VerifyRequest) Descriptor() ([]byte, []int)
func (*VerifyRequest) GetToken ¶
func (m *VerifyRequest) GetToken() string
func (*VerifyRequest) Marshal ¶
func (m *VerifyRequest) Marshal() (dAtA []byte, err error)
func (*VerifyRequest) MarshalToSizedBuffer ¶
func (m *VerifyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VerifyRequest) ProtoMessage ¶
func (*VerifyRequest) ProtoMessage()
func (*VerifyRequest) Reset ¶
func (m *VerifyRequest) Reset()
func (*VerifyRequest) Size ¶
func (m *VerifyRequest) Size() (n int)
func (*VerifyRequest) String ¶
func (m *VerifyRequest) String() string
func (*VerifyRequest) Unmarshal ¶
func (m *VerifyRequest) Unmarshal(dAtA []byte) error
func (*VerifyRequest) XXX_DiscardUnknown ¶
func (m *VerifyRequest) XXX_DiscardUnknown()
func (*VerifyRequest) XXX_Marshal ¶
func (m *VerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerifyRequest) XXX_Merge ¶
func (m *VerifyRequest) XXX_Merge(src proto.Message)
func (*VerifyRequest) XXX_Size ¶
func (m *VerifyRequest) XXX_Size() int
func (*VerifyRequest) XXX_Unmarshal ¶
func (m *VerifyRequest) XXX_Unmarshal(b []byte) error
type VerifyResponse ¶
type VerifyResponse struct { }
func (*VerifyResponse) Descriptor ¶
func (*VerifyResponse) Descriptor() ([]byte, []int)
func (*VerifyResponse) Marshal ¶
func (m *VerifyResponse) Marshal() (dAtA []byte, err error)
func (*VerifyResponse) MarshalToSizedBuffer ¶
func (m *VerifyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VerifyResponse) ProtoMessage ¶
func (*VerifyResponse) ProtoMessage()
func (*VerifyResponse) Reset ¶
func (m *VerifyResponse) Reset()
func (*VerifyResponse) Size ¶
func (m *VerifyResponse) Size() (n int)
func (*VerifyResponse) String ¶
func (m *VerifyResponse) String() string
func (*VerifyResponse) Unmarshal ¶
func (m *VerifyResponse) Unmarshal(dAtA []byte) error
func (*VerifyResponse) XXX_DiscardUnknown ¶
func (m *VerifyResponse) XXX_DiscardUnknown()
func (*VerifyResponse) XXX_Marshal ¶
func (m *VerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerifyResponse) XXX_Merge ¶
func (m *VerifyResponse) XXX_Merge(src proto.Message)
func (*VerifyResponse) XXX_Size ¶
func (m *VerifyResponse) XXX_Size() int
func (*VerifyResponse) XXX_Unmarshal ¶
func (m *VerifyResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.