auth

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalAuthFunc added in v1.2.2

func ExternalAuthFunc(rawMsg json5.RawMessage) (core.ConnectFunc, error)

func PasswordAuthFunc added in v1.2.2

func PasswordAuthFunc(rawMsg json5.RawMessage) (core.ConnectFunc, error)

Types

type CmdAuthProvider

type CmdAuthProvider struct {
	Cmd string
}

func (*CmdAuthProvider) Auth

func (p *CmdAuthProvider) Auth(addr net.Addr, auth []byte, sSend uint64, sRecv uint64) (bool, string)

type HTTPAuthProvider

type HTTPAuthProvider struct {
	Client *http.Client
	URL    string
}

func (*HTTPAuthProvider) Auth

func (p *HTTPAuthProvider) Auth(addr net.Addr, auth []byte, sSend uint64, sRecv uint64) (bool, string)

Jump to

Keyboard shortcuts

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