Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(Invoker), "*"), clock.DependencySet, globaldb.DependencySet, config.NewDefaultDatabaseEnvironmentConfig, authz.DependencySet, wire.Struct(new(configsource.Store), "*"), )
Functions ¶
This section is empty.
Types ¶
type InvokeOptions ¶
type InvokeResult ¶
type InvokeResult struct {
// The body of HTTPResponse MUST NOT BE used.
HTTPResponse *http.Response
HTTPBody []byte
DumpedResponse []byte
}
func (*InvokeResult) Error ¶
func (r *InvokeResult) Error() string
type Invoker ¶
type Invoker struct {
DatabaseHandle *globaldb.Handle
Store *configsource.Store
Adder *authz.Adder
}
func NewInvoker ¶
func NewInvoker(pool *db.Pool, credentials *config.GlobalDatabaseCredentialsEnvironmentConfig) *Invoker
func (*Invoker) FetchAdminAPIKeys ¶
func (*Invoker) Invoke ¶
func (i *Invoker) Invoke(ctx context.Context, options InvokeOptions) (*InvokeResult, error)
Click to show internal directories.
Click to hide internal directories.