myfoodbot

package
v0.0.0-...-f8cb77d Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

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

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

type ServiceSettings

type ServiceSettings struct {
	Token          string
	PollTimeOut    time.Duration
	BuildCommit    string
	DBFilePath     string
	AllowedUserIDs []int64
	TZ             *time.Location
}

func NewServiceSettings

func NewServiceSettings(
	token string,
	pollTimeout time.Duration,
	dbFilePath string,
	alloweUserIDs []int64,
	stz string,
	buildVersion string) (*ServiceSettings, error)

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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