query

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMessages

func ErrorMessages(prefix string, err error) map[string][]string

func Process

func Process(q Query) error

func ToSnakeCase

func ToSnakeCase(str string) string

func Validate

func Validate(v Validatable, prefix string) error

Types

type ListTokens

type ListTokens struct {
	UserID string
	Limit  string
	Offset string
}

func (*ListTokens) GetLimit

func (q *ListTokens) GetLimit() uint64

func (*ListTokens) GetOffset

func (q *ListTokens) GetOffset() uint64

func (*ListTokens) Validate

func (q *ListTokens) Validate() error

type Query

type Query interface {
	Validatable
}

type TokenDetails

type TokenDetails struct {
	UserID  string
	TokenID string
}

func (*TokenDetails) Validate

func (q *TokenDetails) Validate() error

type Validatable

type Validatable interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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