Discover Packages
github.com/mfateev/yarpc-go
internal
request
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Sep 30, 2016
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Validate is a shortcut for the case where a request needs to be validated
without changing the TTL.
Validator helps validate requests.
v := Validator{Request: request}
v.ParseTTL(ttlstring)
request, err := v.Validate()
ParseTTL takes a context parses the given TTL, clamping the context to that TTL
and as a side-effect, tracking any errors encountered while attempting to
parse and validate that TTL.
Validate checks that the request inside this validator is valid and returns
either the validated request or an error.
ValidatorOutbound wraps an Outbound to validate all outgoing requests.
Call performs the given request, failing early if the request is invalid.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.