package
0.0.2
Repository: https://github.com/codingjzy/manipulate.git
Documentation: pkg.go.dev

# Functions

ExtractCredentials extracts the username and password from the given manipulator.
ExtractEndpoint extracts the endpoint url from the given manipulator.
ExtractNamespace extracts the default namespace from the given manipulator.
ExtractTLSConfig extracts the tls config from the given manipulator.
New returns a maniphttp.Manipulator configured according to the given suite of Option.
NewHTTPManipulator returns a Manipulator backed by an ReST API.
NewHTTPManipulatorWithTLS returns a Manipulator backed by an ReST API using the tls config.
NewHTTPManipulatorWithTokenManager returns a http backed manipulate.Manipulatorusing the given manipulate.TokenManager to manage the the token.
NewSubscriber returns a new subscription.
NewSubscriberWithEndpoint returns a new subscription connecting to specific endpoint.
OptionAdditonalHeaders sets the additional http.Header that will be sent.
OptionCredentials sets the username and password to use for authentication.
OptionHTTPClient sets internal full *http.Client.
OptionHTTPTransport sets internal *http.Transport.
OptionNamespace sets the namespace.
OptionTLSConfig sets the tls.Config to use for the manipulator.
OptionToken sets JWT token.
OptionTokenManager sets manipulate.TokenManager to handle token auto renewal.
SetGlobalHeaders sets the given headers to all requests that will be sent.

# Type aliases

An Option represents a maniphttp.Manipulator option.