service

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander

type Commander struct {
	Users     *users.Service
	Discord   *worker.DiscordWorker
	Registrar *RegistrarWorker
	// contains filtered or unexported fields
}

func NewCommander

func NewCommander(db *sqlx.DB, rc *redis.Client, sess *discordgo.Session, cd *consul.ConsulDiscovery, rabbit *amqp.Connection, logger *zap.Logger) (*Commander, error)

func (*Commander) Run

func (c *Commander) Run() error

type RegistrarHandler

type RegistrarHandler func(id uuid.UUID, command string)

type RegistrarWorker

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

func NewRegistrarWorker

func NewRegistrarWorker(registrar *discovery.ConsulDiscovery) *RegistrarWorker

func (*RegistrarWorker) AddRegistrarHandler

func (r *RegistrarWorker) AddRegistrarHandler(handler discovery.HandlerFunc)

func (*RegistrarWorker) Run

func (r *RegistrarWorker) Run(name string)

Jump to

Keyboard shortcuts

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