x

package
v0.13.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 8 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)

func UUIDs

func UUIDs(n int) []uuid.UUID

Types

type LoggerProvider

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

type NetworkIDProvider

type NetworkIDProvider interface {
	NetworkID(context.Context) uuid.UUID
}

type OPLSyntaxRouter

type OPLSyntaxRouter struct{ *httprouter.Router }

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 TracingProvider

type TracingProvider interface {
	Tracer(ctx context.Context) *otelx.Tracer
}

type TransactorProvider

type TransactorProvider interface {
	Transactor() interface {
		Transaction(ctx context.Context, f func(ctx context.Context) error) error
	}
}

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