foo

package
v0.0.0-...-0b6ba8e Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Title       string `toml:"repo_title" yaml:"repo_title" env:"REPO_TITLE"`
	Prefix      string `toml:"repo_prefix" yaml:"repo_prefix" env:"REPO_PREFIX"`
	MaxIDLenght int    `toml:"repo_max_id_length" yaml:"repo_max_id_length" env:"REPO_MAX_ID_LENGTH"`
}

type FooRepo

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

FooRepo - mock repository

func New

func New(ss domain.StartStopInterface, lg *slog.Logger, cnf *Config) *FooRepo

func (*FooRepo) CheckStatus

func (f *FooRepo) CheckStatus() int

func (*FooRepo) GetFoo

func (f *FooRepo) GetFoo(fooID string) (*domain.Foo, error)

func (*FooRepo) Start

func (f *FooRepo) Start() error

func (*FooRepo) Stop

func (f *FooRepo) Stop() error

Jump to

Keyboard shortcuts

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