requests

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_PAGE_SIZE = 1000

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body interface {
	Validate() error
}

type Request

type Request struct {
	ID        string
	APIKey    string
	APISecret string
	IP        string
	Client    string
	Body      Body
	Context   context.Context
	Cancel    context.CancelFunc
}

func New

func New(header http.Header, ip string) *Request

func (*Request) SetBody

func (r *Request) SetBody(body Body)

func (*Request) VerifyHeaders

func (r *Request) VerifyHeaders() error

type StandardList

type StandardList struct {
	Limit       int                   `json:"limit"`
	Offset      int                   `json:"offset"`
	DateFilters []postgres.DateFilter `json:"date_filters"` // TODO: Make this a DateFilter interface
}

func (*StandardList) ParseDatesToUnix

func (r *StandardList) ParseDatesToUnix(validDBColumns []string) error

func (*StandardList) Validate

func (r *StandardList) Validate() error

Jump to

Keyboard shortcuts

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