roster

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: BSD-3-Clause Imports: 5 Imported by: 147

README

go-roster

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRoster

type DefaultRoster struct {
	Roster
	// contains filtered or unexported fields
}

func (*DefaultRoster) Driver

func (dr *DefaultRoster) Driver(ctx context.Context, name string) (interface{}, error)

func (*DefaultRoster) Drivers

func (dr *DefaultRoster) Drivers(ctx context.Context) []string

func (*DefaultRoster) NormalizeName

func (dr *DefaultRoster) NormalizeName(ctx context.Context, name string) string

func (*DefaultRoster) Register

func (dr *DefaultRoster) Register(ctx context.Context, name string, i interface{}) error

func (*DefaultRoster) UnregisterAll

func (dr *DefaultRoster) UnregisterAll(ctx context.Context) error

type Roster

type Roster interface {
	Driver(context.Context, string) (interface{}, error)
	Drivers(context.Context) []string
	UnregisterAll(context.Context) error
	NormalizeName(context.Context, string) string
	Register(context.Context, string, interface{}) error
}

func NewDefaultRoster

func NewDefaultRoster() (Roster, error)

Jump to

Keyboard shortcuts

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