server

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAPIRequestSkipper added in v0.10.1

func DefaultAPIRequestSkipper(c echo.Context) bool

func DefaultGetRequestSkipper added in v0.10.0

func DefaultGetRequestSkipper(c echo.Context) bool

Types

type MetricCollector added in v0.7.0

type MetricCollector struct {
	ID      string
	Enabled bool
	Profile *profile.Profile
	// contains filtered or unexported fields
}

MetricCollector is the metric collector.

func (*MetricCollector) Collect added in v0.7.0

func (mc *MetricCollector) Collect(_ context.Context, metric *metric.Metric)

func (*MetricCollector) Identify added in v0.10.0

func (mc *MetricCollector) Identify(_ context.Context)

type Server

type Server struct {
	ID        string
	Profile   *profile.Profile
	Store     *store.Store
	Collector *MetricCollector
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, profile *profile.Profile) (*Server, error)

func (*Server) DefaultAuthSkipper added in v0.10.0

func (server *Server) DefaultAuthSkipper(c echo.Context) bool

func (*Server) Shutdown added in v0.10.3

func (s *Server) Shutdown(ctx context.Context)

func (*Server) Start added in v0.10.3

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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