Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin interface { // Name gets the name of the plugin Name() string // InitConfig initializes the set of configuration options that are valid, with defaults. Called on all plugins. InitConfig(config config.Section) // Init initializes the plugin, with configuration Init(ctx context.Context, name string, config config.Section) error // Authorize is the authorizer function. If it returns nil, the request proceeds. If it returns an error, // the request is rejected with that error message and corresponding HTTP status code Authorize(ctx context.Context, req *fftypes.AuthReq) error }
Click to show internal directories.
Click to hide internal directories.