Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InvalidSourceToken = errors.New("you provided an invalid source token") InvalidBodyFormat = errors.New("invalid body format:The body is not a valid JSON or MessagePack") )
Functions ¶
This section is empty.
Types ¶
type ContentType ¶
type ContentType string
const ( MsgPack ContentType = "application/msgpack" Json ContentType = "application/json; charset=UTF-8" )
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAuthToken ¶
WithAuthToken sets the custom auth token.
func WithCustomServer ¶
WithCustomServer sets the custom server to connect .
func WithDefaultContentType ¶
func WithDefaultContentType(contentType ContentType) Option
WithDefaultContentType sets the default content type to json.
func WithDefaultMarshaler ¶
WithDefaultMarshaler sets the default marshaler.
func WithHttpTransport ¶
WithHttpTransport sets the custom http transport.
Click to show internal directories.
Click to hide internal directories.