logrpc

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenCred

type TokenCred struct {
	IP       string
	Service  string
	Instance string
	Token    string
}

TokenCred implements grpc.PerRPCCredentials and can be used for authentication via gRPC

func (*TokenCred) GetRequestMetadata

func (c *TokenCred) GetRequestMetadata(context.Context, ...string) (map[string]string, error)

GetRequestMetadata returns request metadata

func (*TokenCred) RequireTransportSecurity

func (c *TokenCred) RequireTransportSecurity() bool

RequireTransportSecurity returns transport security preferences

Jump to

Keyboard shortcuts

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