headerutil

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: BSD-2-Clause Imports: 2 Imported by: 0

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