headerutil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: BSD-2-Clause Imports: 2 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range struct {
	// If provided, specifies field to sort by.
	Sort *string

	// If provided, limits the results to the provided value.
	Max *int

	// The order the results are returned in.
	Order *string
}

func ParseRange

func ParseRange(header string) (*Range, error)

func (*Range) WithDefaults

func (r *Range) WithDefaults(d Range) Range

WithDefaults returns a new Range instance with the defaults taken from d.

Jump to

Keyboard shortcuts

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