client

package
v0.0.0-...-047630e Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func EncodeLoginRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)

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.

func (*Client) Login

func (c *Client) Login() goa.Endpoint

Login calls the "Login" function in authpb.AuthClient interface.

func (*Client) Logout

func (c *Client) Logout() goa.Endpoint

Logout calls the "Logout" function in authpb.AuthClient interface.

Jump to

Keyboard shortcuts

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