Documentation ¶
Index ¶
- func BuildLoginFunc(grpccli authpb.AuthClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildLoginPayload(authLoginMessage string) (*auth.LoginPayload, error)
- func BuildLogoutFunc(grpccli authpb.AuthClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func EncodeLoginRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func NewLoginRequest(payload *auth.LoginPayload) *authpb.LoginRequest
- func NewLogoutRequest() *authpb.LogoutRequest
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLoginFunc ¶
func BuildLoginFunc(grpccli authpb.AuthClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildLoginFunc builds the remote method to invoke for "Auth" service "Login" endpoint.
func BuildLoginPayload ¶
func BuildLoginPayload(authLoginMessage string) (*auth.LoginPayload, error)
BuildLoginPayload builds the payload for the Auth Login endpoint from CLI flags.
func BuildLogoutFunc ¶
func BuildLogoutFunc(grpccli authpb.AuthClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildLogoutFunc builds the remote method to invoke for "Auth" service "Logout" endpoint.
func EncodeLoginRequest ¶
EncodeLoginRequest encodes requests sent to Auth Login endpoint.
func NewLoginRequest ¶
func NewLoginRequest(payload *auth.LoginPayload) *authpb.LoginRequest
NewLoginRequest builds the gRPC request type from the payload of the "Login" endpoint of the "Auth" service.
func NewLogoutRequest ¶
func NewLogoutRequest() *authpb.LogoutRequest
NewLogoutRequest builds the gRPC request type from the payload of the "Logout" endpoint of the "Auth" service.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client lists the service endpoint gRPC clients.
func NewClient ¶
func NewClient(cc *grpc.ClientConn, opts ...grpc.CallOption) *Client
NewClient instantiates gRPC client for all the Auth service servers.