server

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 33 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) Run

func (s *Server) Run(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