server

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FetchLimit = 100
	MaxOrders  = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchConfig

type FetchConfig struct {
	Filter  *twmodel.ServerFilter
	Columns []string
	Select  bool
	Count   bool
	Sort    []string
	Limit   int
	Offset  int
}

type Repository

type Repository interface {
	Fetch(ctx context.Context, cfg FetchConfig) ([]*twmodel.Server, int, error)
}

type Usecase

type Usecase interface {
	Fetch(ctx context.Context, cfg FetchConfig) ([]*twmodel.Server, int, error)
	GetByKey(ctx context.Context, key string) (*twmodel.Server, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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