sidecarserv

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Reader models.Reader
	Writer models.Writer
	// contains filtered or unexported fields
}

Server is a struct that contains the variables necessary to handle the necessary routes of the rest API

func Init

func Init(r models.Reader, w models.Writer, broker string) *Server

Init - configures the server

func (*Server) GetMetric added in v0.1.4

func (s *Server) GetMetric(channel string) channelMetric

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the server on the port given in addr

Jump to

Keyboard shortcuts

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