transport

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidCaCert  = "could not load tls cert; err: [%s]"
	ErrGrpcDialFailed = "failed to connect to grpc endpoint: [%s] err: [%s]"
	ErrExecOpFailed   = "execOp failed; err: [%s]"
)
View Source
const (
	GRPC_TIME_OUT = (10 * time.Second)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Grpc

type Grpc struct {
	// contains filtered or unexported fields
}

Grpc provider

func NewGrpcClient

func NewGrpcClient(ep string, insecure bool, loc string) *Grpc

Get a new Grpc client

func (*Grpc) DoGrpc

func (g *Grpc) DoGrpc(req slvpb.ExecOpReq, token string) (slvpb.ExecOpResp, error)

Helper routine to send the grpc request and return the response from slv-svc

Jump to

Keyboard shortcuts

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