ocsadapter

package
v0.0.0-...-5d338f1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OcsAdapter

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

OcsAdapter supports metric template.

func (*OcsAdapter) Addr

func (s *OcsAdapter) Addr() string

Addr returns the listening address of the server

func (*OcsAdapter) Close

func (s *OcsAdapter) Close() error

Close gracefully shuts down the server; used for testing

func (*OcsAdapter) HandleAuthorization

HandleMetric records metric entries

func (*OcsAdapter) Run

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

Run starts the server run

type Server

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

Server is basic server interface

func NewOcsAdapter

func NewOcsAdapter(addr string) (Server, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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