monitor

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(s *Server)

Option is a function that applies a configuration to the server.

func WithLogger

func WithLogger(l logger.Logger) Option

WithLogger sets the logger to use. By default, it logs to standard out.

type Server

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

Server is the main type used by client sot interact with the monitoring functionality of goka.

func NewServer

func NewServer(basePath string, router *mux.Router, opts ...Option) *Server

NewServer creates a new Server

func (*Server) AttachProcessor

func (s *Server) AttachProcessor(processor *goka.Processor)

func (*Server) AttachView

func (s *Server) AttachView(view *goka.View)

AttachView attaches a processor to the monitor.

func (*Server) BasePath

func (s *Server) BasePath() string

Jump to

Keyboard shortcuts

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