Documentation ¶
Index ¶
- func ConfigActiveFromENV(key string) (active string)
- type Application
- type ExecuteOption
- type ExecuteOptions
- type Hook
- type HookOptions
- type Option
- func ConfigRetriever(path string, format string, active string, prefix string, splitter byte) Option
- func Id(id string) Option
- func Name(name string) Option
- func Proxy(tr *TransportOptions) Option
- func RegisterValidator(register validators.ValidateRegister) Option
- func ShutdownTimeout(timeout time.Duration) Option
- func Transport(tr *TransportOptions) Option
- func Version(version string) Option
- type Options
- type TransportOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigActiveFromENV ¶ added in v0.1.1
Types ¶
type Application ¶
type Application interface { Deploy(service ...service.Service) (err error) Run(ctx context.Context) (err error) RunWithHooks(ctx context.Context, hook ...Hook) (err error) Execute(ctx context.Context, serviceName string, fn string, argument interface{}, options ...ExecuteOption) (result service.FutureResult, err errors.CodeError) Log() (log logs.Logger) Sync() (err error) Quit() }
func New ¶
func New(options ...Option) (app Application)
type ExecuteOption ¶ added in v0.13.14
type ExecuteOption func(*ExecuteOptions)
func ExecuteAsInternalRequest ¶ added in v0.14.0
func ExecuteAsInternalRequest() ExecuteOption
func ExecuteWithRequestUser ¶ added in v0.14.0
func ExecuteWithRequestUser(user service.RequestUser) ExecuteOption
type ExecuteOptions ¶ added in v0.13.14
type ExecuteOptions struct {
// contains filtered or unexported fields
}
type HookOptions ¶ added in v0.13.11
type HookOptions struct { Log logs.Logger Config configures.Config }
type Option ¶
func ConfigRetriever ¶
func Proxy ¶ added in v1.0.10
func Proxy(tr *TransportOptions) Option
func RegisterValidator ¶ added in v0.12.0
func RegisterValidator(register validators.ValidateRegister) Option
func ShutdownTimeout ¶ added in v0.12.0
func Transport ¶ added in v1.0.10
func Transport(tr *TransportOptions) Option
type TransportOptions ¶ added in v1.0.10
type TransportOptions struct {
// contains filtered or unexported fields
}
func TransportOption ¶ added in v1.0.10
func TransportOption() *TransportOptions
func (*TransportOptions) Append ¶ added in v1.0.10
func (options *TransportOptions) Append(handlers ...service.TransportHandler) *TransportOptions
func (*TransportOptions) Use ¶ added in v1.0.10
func (options *TransportOptions) Use(middlewares ...service.TransportMiddleware) *TransportOptions
Click to show internal directories.
Click to hide internal directories.