Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IPNIPath is the path that the Publisher expects as the last port of the // HTTP request URL path. The sync client automatically adds this to the // request path. IPNIPath = "/ipni/v1/ad" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*config) error
Option is a function that sets a value in a config.
func WithHTTPListenAddrs ¶
WithHTTPListenAddrs sets the HTTP addresse to listen on. These are in addresses:port format
Setting HTTP listen addresses is optional when a stream host is provided by the WithStreamHost option.
func WithHandlerPath ¶
WithHandlerPath sets the path used to handle requests to this publisher. This specifies the portion of the path before the implicit /ipni/v1/ad/ part of the path. Calling WithHandlerPath("/foo/bar") configures the publisher to handle HTTP requests on the path "/foo/bar/ipni/v1/ad/".
Click to show internal directories.
Click to hide internal directories.