auth

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAuth        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuth          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group")
)

Functions

func NewAuthEndpoints

func NewAuthEndpoints() []*api.Endpoint

API Endpoints for Auth service

func NewAuthOpenAPI added in v0.8.4

func NewAuthOpenAPI() *registry.OpenAPI

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

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) MarshalTo

func (m *VerifyRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *VerifyResponse) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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