adminapi

package
v0.0.0-...-bea0022 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type InvokeOptions

type InvokeOptions struct {
	AppID         string
	Endpoint      string
	Host          string
	AdminAPIKey   *config.AdminAPIAuthKey
	Query         string
	OperationName string
	VariablesJSON string
}

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 (i *Invoker) FetchAdminAPIKeys(ctx context.Context, appID string) (*config.AdminAPIAuthKey, error)

func (*Invoker) Invoke

func (i *Invoker) Invoke(ctx context.Context, options InvokeOptions) (*InvokeResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL