common

package
v0.0.0-...-e288b73 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 2 Imported by: 0

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 Auth

type Auth interface {
	Authenticate() bool
}

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/

Jump to

Keyboard shortcuts

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