Documentation ¶
Index ¶
Constants ¶
View Source
const AuthPluginName = "authPlugin"
Variables ¶
View Source
var HandshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "BASIC_PLUGIN",
MagicCookieValue: "hello",
}
Functions ¶
This section is empty.
Types ¶
type AuthPlugin ¶
type AuthPlugin struct {
Impl Auth
}
func (AuthPlugin) Client ¶
func (AuthPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)
func (*AuthPlugin) Server ¶
func (p *AuthPlugin) Server(*plugin.MuxBroker) (interface{}, error)
type AuthRPCClient ¶
type AuthRPCClient struct {
// contains filtered or unexported fields
}
func (*AuthRPCClient) Authenticate ¶
func (a *AuthRPCClient) Authenticate() bool
type AuthRPCServer ¶
type AuthRPCServer struct {
Impl Auth
}
func (*AuthRPCServer) Authenticate ¶
func (s *AuthRPCServer) Authenticate(args interface{}, resp *bool) error
Authenticate conforms to the requirements of the net/rpc server method. https://golang.org/pkg/net/rpc/
Click to show internal directories.
Click to hide internal directories.