Documentation ¶
Overview ¶
Package demo is an example of developing a gateway plugin. You can refer to this example to develop your own plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerFilter ¶
func ServerFilter(ctx context.Context, req interface{}, handler filter.ServerHandleFunc) (interface{}, error)
ServerFilter Server-side interceptor
Types ¶
type Options ¶
type Options struct { // Parameter name for receiving suid in the proxy interface SUIDName string `yaml:"suid_name"` }
Options Configuration for the authentication plugin. Here, a separate configuration object needs to be defined.
type Plugin ¶
type Plugin struct{}
Plugin Signature verification plugin
func (*Plugin) CheckConfig ¶
CheckConfig verifies the plugin configuration and returns the parsed configuration object. Used in the ServerFilter method for parsing.
Click to show internal directories.
Click to hide internal directories.