x

package
v0.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMaxDepthFromQuery

func GetMaxDepthFromQuery(q url.Values) (int, error)

Types

type LoggerProvider

type LoggerProvider interface {
	Logger() *logrusx.Logger
}

type PaginationOptionSetter

type PaginationOptionSetter func(*PaginationOptions) *PaginationOptions

func WithSize

func WithSize(size int) PaginationOptionSetter

func WithToken

func WithToken(t string) PaginationOptionSetter

type PaginationOptions

type PaginationOptions struct {
	Token string `json:"page_token"`
	Size  int    `json:"page_size"`
}

func GetPaginationOptions

func GetPaginationOptions(modifiers ...PaginationOptionSetter) *PaginationOptions

type ReadRouter

type ReadRouter struct {
	*httprouter.Router
}

type WriteRouter

type WriteRouter struct {
	*httprouter.Router
}

type WriterProvider

type WriterProvider interface {
	Writer() herodot.Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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