myfoodserver

package
v0.0.0-...-8c11f49 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SessionName = "MyFoodSession"

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerSettings

type ServerSettings struct {
	RunAddress      *url.URL
	DBFilePath      string
	ShutdownTimeout time.Duration
}

func NewServerSettings

func NewServerSettings(
	runAddress string,
	dbFilePath string,
	shutdownTimeout time.Duration) (*ServerSettings, error)

type Service

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

func NewService

func NewService(settings *ServerSettings, logger *zap.Logger) (*Service, error)

func (*Service) Run

func (r *Service) 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