Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
func WithBasePath ¶
WithBasePath used to define base path of server
func WithDetectDelay ¶
WithDetectDelay define the delay of starting heartbeat detect
func WithHostAddr ¶
WithHostAddr used to define host addr server listens
func WithThrift0 ¶
func WithThrift0() Option
WithThrift0 must be consistent will guidance.WithThriftII
func WithTransport ¶
func WithTransport(tpt func(context.Context) http.RoundTripper) Option
WithTransport define your own http transport
type Options ¶
type Options struct { BasePath string Addr string Dispatcher distributed.Dispatcher Thrift bool Transport func(context.Context) http.RoundTripper DetectDelay time.Duration }
func NewOptions ¶
NewOptions used for both server and client
Click to show internal directories.
Click to hide internal directories.