controller

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandardResponseFields

type StandardResponseFields struct {
	Path    string `json:"path,omitempty"`
	TraceID string `json:"trace_id,omitempty"`
}

StandardResponseFields is meant to be included in all response bodies and includes "standard" response fields

func NewStandardResponseFields

func NewStandardResponseFields(id TraceID, r *http.Request) StandardResponseFields

NewStandardResponseFields is an initializer for the StandardResponseFields struct

type TraceID added in v0.16.0

type TraceID struct {
	xid.ID
}

RequestID is the unique Request ID for each request

func NewMockTraceID added in v0.16.0

func NewMockTraceID() TraceID

NewMockTraceID is an initializer for TraceID which returns a static "mocked"

func NewTraceID added in v0.16.0

func NewTraceID(id xid.ID) TraceID

NewTraceID is an initializer for TraceID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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