facade

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminRequest added in v0.17.14

type AdminRequest struct {
	ID        string          `json:"id"`
	UserID    config.UserID   `json:"user_id"`
	TargetID  config.TargetID `json:"target_id"`
	Query     string          `json:"query"`
	CreatedAt string          `json:"created_at"`
}

type Bookmark added in v0.17.14

type Bookmark struct {
	ID       string          `json:"id"`
	TargetID config.TargetID `json:"target_id"`
	Title    string          `json:"title"`
	Query    string          `json:"query"`
}

type OptOptionsSetter

type OptOptionsSetter func(o *Options)

type Options

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

func NewOptions

func NewOptions(
	logger *slog.Logger,
	app *app.Service,
	cookieSecret string,
	port int,
	corsAllowAll bool,
	options ...OptOptionsSetter,
) Options

func (*Options) Validate

func (o *Options) Validate() error

type Query added in v0.17.14

type Query struct {
	ID        string          `json:"id"`
	TargetID  config.TargetID `json:"target_id"`
	Query     string          `json:"query"`
	CreatedAt string          `json:"created_at"`
}

type Service

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

func New

func New(opts Options) (*Service, error)

func (*Service) Run

func (s *Service) Run(_ context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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