Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToServerNoAuth ¶
func ConnectToServerNoAuth() (conn *grpc.ClientConn, err error)
ConnectToServerNoAuth creates a connection to the server without any authorization
func ConnectToServerWithAuth ¶
func ConnectToServerWithAuth(token string) (conn *grpc.ClientConn, err error)
ConnectToServerWithAuth creates a connection to the server without any authorization
Types ¶
type NoAuth ¶
type NoAuth struct{}
NoAuth is the auth token used to call gRPC APIs that does not require auth
func (*NoAuth) GetRequestMetadata ¶
GetRequestMetadata gets the request metadata
func (*NoAuth) RequireTransportSecurity ¶
RequireTransportSecurity requires transport authority
type TokenAuth ¶
type TokenAuth struct {
Token string
}
TokenAuth is the auth token used to call gRPC APIs that requires auth
func (*TokenAuth) GetRequestMetadata ¶
GetRequestMetadata gets the request metadata
func (*TokenAuth) RequireTransportSecurity ¶
RequireTransportSecurity requires transport authority
Click to show internal directories.
Click to hide internal directories.