service

package
v0.0.0-...-b4a51ed Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	PublicKey() *rsa.PublicKey
}

type BetaSerializer

type BetaSerializer interface {
	Decode(input []byte) (*model.Beta, error)
	DecodeRange(input []byte) ([]*model.Beta, error)
	DecodeMap(input []byte) (map[string]interface{}, error)
	DecodeInto(input []byte, target interface{}) error
	Encode(input interface{}) ([]byte, error)
}

type BetaService

type BetaService interface {
	FetchOne(code string, params *meta.RequestParams) (*model.Beta, error)
	Fetch(codes []string, params *meta.RequestParams) ([]*model.Beta, error)
	FetchAll(params *meta.RequestParams) ([]*model.Beta, error)
	FetchQuery(query meta.RequestQuery, params *meta.RequestParams) ([]*model.Beta, error)
	StoreOne(beta *model.Beta) error
	Store(beta []*model.Beta) error
	Modify(betas *model.Beta) error
	Count(query meta.RequestQuery, params *meta.RequestParams) (int, error)
	CountAll() (int, error)
}

Jump to

Keyboard shortcuts

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