mygrpcadapter

package module
v0.0.0-...-6383d73 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ANNOTATION = "multicluster.admiralty.io/clustername"

Variables

This section is empty.

Functions

This section is empty.

Types

type MyGrpcAdapter

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

MyGrpcAdapter supports metric template.

func (*MyGrpcAdapter) Addr

func (s *MyGrpcAdapter) Addr() string

Addr returns the listening address of the server

func (*MyGrpcAdapter) Close

func (s *MyGrpcAdapter) Close() error

Close gracefully shuts down the server; used for testing

func (*MyGrpcAdapter) HandleMetric

HandleMetric records metric entries

func (*MyGrpcAdapter) Run

func (s *MyGrpcAdapter) Run(shutdown chan error)

Run starts the server run

type Payload

type Payload struct {
	ClusterName    string
	DeploymentName string
}

type Server

type Server interface {
	Addr() string
	Close() error
	Run(shutdown chan error)
}

Server is basic server interface

func NewMyGrpcAdapter

func NewMyGrpcAdapter(addr string) (Server, error)

NewMyGrpcAdapter creates a new IBP adapter that listens at provided port.

Jump to

Keyboard shortcuts

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