master

package
v0.0.0-...-9eee1bd Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CacheKeyPrefix = "everstore"

CacheKeyPrefix is used to define caching keys.

View Source
const DefaultPaginationLimit = 10
View Source
const Prefix = "/api/v1"
View Source
const TenantKey = "tenant"

Variables

This section is empty.

Functions

func ER

func ER(err error) *server.ErrorResponse

func New

func New(cfg Config) *service

func NewPagination

func NewPagination(ctx *gin.Context) *model.Pagination

func NewTenantMiddleware

func NewTenantMiddleware() gin.HandlerFunc

Types

type Config

type Config struct {
	Server    server.Config
	Database  *pg.Options
	Cache     *redis.Options
	MachineID uint16
}

type Service

type Service interface{}

Jump to

Keyboard shortcuts

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