grpcutil

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCTimestamp

func GRPCTimestamp(t time.Time) *timestamp.Timestamp

Types

type GRPCDialer

type GRPCDialer struct {
	StreamClientInterceptors []grpc.StreamClientInterceptor
	UnaryClientInterceptors  []grpc.UnaryClientInterceptor
	// contains filtered or unexported fields
}

func NewGRPCDialer

func NewGRPCDialer(token string) *GRPCDialer

func (*GRPCDialer) Dial

func (gd *GRPCDialer) Dial(endpoint string, insecure bool) (*grpc.ClientConn, error)

func (*GRPCDialer) DialAs

func (gd *GRPCDialer) DialAs(endpoint string, insecure bool, userID string, systemRole *roles.SystemRole) (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

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