service

package
v0.0.1-071123-ba187ca Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShortTTL = time.Minute * 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WhitelistEnabled bool `yaml:"whitelist_enabled"`
}

type Deps

type Deps struct {
	Bot    tg.Bot
	Repo   *pg.Repository
	Client standup.StandupClient
	Issuer auth.Issuer
}

type Service

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

func NewService

func NewService(logger *zap.Logger, cfg Config, deps Deps) (*Service, error)

func (*Service) Start

func (s *Service) Start()

func (*Service) Stop

func (s *Service) Stop()

type SyntaxError

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

func NewSyntaxError

func NewSyntaxError(msg string) SyntaxError

func NewSyntaxErrorf

func NewSyntaxErrorf(format string, args ...any) SyntaxError

func (SyntaxError) Error

func (e SyntaxError) Error() string

Jump to

Keyboard shortcuts

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