rest

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStructValidator

func NewStructValidator() *structValidator

Types

type RestApp

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

func New

func New(ctx context.Context, serv *service.Service, cfg runtimecfg.RestConfig, opts ...RestAppOption) (*RestApp, error)

func (*RestApp) Run

func (r *RestApp) Run(stopCtx context.Context) error

type RestAppOption

type RestAppOption func(app *RestApp) error

func WithTelegramBot

func WithTelegramBot(bot common.TelegramBot) RestAppOption

type ValidationError

type ValidationError struct {
	Field   string `json:"field"`
	Message string `json:"message"`
}

func (ValidationError) Error

func (e ValidationError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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