service

package
v0.0.0-...-2a859bb Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: ISC Imports: 9 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 struct{}

func (Authenticator) Authenticate

func (Authenticator) Authenticate(form []string) (cchat.Session, cchat.AuthenticateError)

func (Authenticator) AuthenticateForm

func (Authenticator) AuthenticateForm() []cchat.AuthenticateEntry

func (Authenticator) Description

func (Authenticator) Description() text.Rich

func (Authenticator) Name

func (Authenticator) Name() text.Rich

type Configurator

type Configurator struct{}

func (Configurator) Configuration

func (Configurator) Configuration() (map[string]string, error)

func (Configurator) SetConfiguration

func (Configurator) SetConfiguration(config map[string]string) error

type FastAuthenticator

type FastAuthenticator struct{}

func (FastAuthenticator) Authenticate

func (FastAuthenticator) Authenticate(form []string) (cchat.Session, cchat.AuthenticateError)

func (FastAuthenticator) AuthenticateForm

func (FastAuthenticator) AuthenticateForm() []cchat.AuthenticateEntry

func (FastAuthenticator) Description

func (FastAuthenticator) Description() text.Rich

func (FastAuthenticator) Name

func (FastAuthenticator) Name() text.Rich

type Service

type Service struct {
	empty.Service
}

func (Service) AsConfigurator

func (s Service) AsConfigurator() cchat.Configurator

func (Service) AsSessionRestorer

func (s Service) AsSessionRestorer() cchat.SessionRestorer

func (Service) Authenticate

func (s Service) Authenticate() []cchat.Authenticator

func (Service) Name

func (s Service) Name() text.Rich

func (Service) RestoreSession

func (s Service) RestoreSession(storage map[string]string) (cchat.Session, error)

Jump to

Keyboard shortcuts

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