auth

package
v0.0.0-...-9678cfa Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	VerifyLogin(*proto.MsgLogin) bool
}

func NewTokenAuthenticator

func NewTokenAuthenticator(token string) Authenticator

type Nop

type Nop struct{}

func (*Nop) VerifyLogin

func (n *Nop) VerifyLogin(msg *proto.MsgLogin) bool

type TokenAuthenticator

type TokenAuthenticator struct {
	// contains filtered or unexported fields
}

func (*TokenAuthenticator) VerifyLogin

func (t *TokenAuthenticator) VerifyLogin(msg *proto.MsgLogin) bool

Jump to

Keyboard shortcuts

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