Documentation ¶
Overview ¶
Package dialer provides client utitilies for RTrade gRPC services
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredentials ¶
func NewCredentials(token string, withTransportSecurity bool) credentials.PerRPCCredentials
NewCredentials instantiates a new credentials container
Types ¶
type Credentials ¶
type Credentials struct {
// contains filtered or unexported fields
}
Credentials holds per-rpc metadata for the gRPC clients
func (Credentials) GetRequestMetadata ¶
func (c Credentials) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)
GetRequestMetadata retrieves relevant metadata
func (Credentials) RequireTransportSecurity ¶
func (c Credentials) RequireTransportSecurity() bool
RequireTransportSecurity indicates that transport security is required
Click to show internal directories.
Click to hide internal directories.