Documentation ¶
Index ¶
Constants ¶
View Source
const CALL_FUNC_IS_NULL = "create service: The CallFunc cannot be empty~"
View Source
const NAME_IS_NULL = "create service: The ServiceName cannot be empty!"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallFuncParams ¶
type Option ¶
type Option func(opts *Options)
func CallFunc ¶
func CallFunc(fn func(CallFuncParams) (interface{}, error)) Option
type Options ¶
type Options struct { // use for client context set option Context context.Context // handler context Ctx context.Context // ps : []string{"sing.DemoService.SayHello"} Hystrix []string // CallFunc additional parameters Input interface{} Name string Init []micro.Option CallFunc func(CallFuncParams) (interface{}, error) }
Click to show internal directories.
Click to hide internal directories.