webtools

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 12 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(mux *http.ServeMux)
	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