Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Server)
Option is functional argument
func WithDevice ¶
func WithDevice(d rpimonitor.Device) Option
WithDevice sets the component responsible for collecting device status. (e.g. Hardware)
func WithSampleFetcher ¶
func WithSampleFetcher(sf rpimonitor.SampleFetcher) Option
WithSampleFetcher sets the component responsible for searching for samples.
func WithStaticDir ¶
WithStaticDir sets the static files path to the echo HTTP Server
func WithUserManager ¶
func WithUserManager(um rpimonitor.UserManager) Option
WithUserManager sets the component for fetching and authenticating users.
Click to show internal directories.
Click to hide internal directories.