webtools

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{},
	Dev:     &Config{Enabled: true},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool `koanf:"enabled"`
}

type Message

type Message struct {
	ID        uint           `gorm:"primarykey" json:"id"`
	CreatedAt time.Time      `json:"created_at"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"`

	Addr string `json:"addr"`
	Text string `json:"text"`
}

type Svc

type Svc interface {
	Init(muxes *muxes.Muxes)
	Setup(ctx context.Context) error
}

func New

func New(cfg *Config, db db.DB) (Svc, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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