Documentation ¶
Index ¶
- Constants
- type Endpoint
- type JsonRPC
- type Option
- func WithAppID(appID string) Option
- func WithHeaders(h map[string]string) Option
- func WithHost(host string) Option
- func WithLogger(logger log.Logger) Option
- func WithReport(report Reporter) Option
- func WithSOA(s *soa.SOA) Option
- func WithTimeout(timeout time.Duration) Option
- func WithVersion(v string) Option
- type Options
- type Reporter
- type ReqWrapper
Constants ¶
View Source
const VersionHeader = "x-hll-gray-version"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option is for setting options
func WithHeaders ¶ added in v0.6.0
WithHeaders sets headers
func WithTimeout ¶ added in v0.6.1
WithTimeout sets timeout
type Options ¶
type Options struct { Logger log.Logger Host string AppID string SOA *soa.SOA Report Reporter Headers map[string]string Version string Timeout time.Duration }
Options is rpc options
type ReqWrapper ¶
type ReqWrapper []interface{}
Click to show internal directories.
Click to hide internal directories.