interfaces

package
v3.2.12 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Run(servers []configs.Server)
	IsBackground() bool
	Priority() int
}

type Database

type Database struct {
}

func (*Database) IsBackground

func (d *Database) IsBackground() bool

func (*Database) Priority

func (d *Database) Priority() int

func (*Database) Run

func (d *Database) Run(servers []configs.Server)

type Elasticsearch

type Elasticsearch struct {
	Client *elastic.Client
}

func (*Elasticsearch) IsBackground

func (e *Elasticsearch) IsBackground() bool

func (*Elasticsearch) Priority

func (e *Elasticsearch) Priority() int

func (*Elasticsearch) Run

func (e *Elasticsearch) Run(servers []configs.Server)

type Factory

type Factory struct {
	Applications []Application
}

func (*Factory) Run

func (a *Factory) Run(servers []configs.Server)

type GRpc

type GRpc struct {
	GRpcPort int
	Debug    bool
}

func (*GRpc) IsBackground

func (g *GRpc) IsBackground() bool

func (*GRpc) Priority

func (g *GRpc) Priority() int

func (*GRpc) Run

func (g *GRpc) Run(servers []configs.Server)

type Queue

type Queue struct {
	Messenger *messengers.Messenger
}

func (*Queue) IsBackground

func (q *Queue) IsBackground() bool

func (*Queue) Priority

func (q *Queue) Priority() int

func (*Queue) Run

func (q *Queue) Run(servers []configs.Server)

type Rest

type Rest struct {
	GRpcPort   int
	HttpPort   int
	Middleware *middlewares.Factory
	Router     *routers.Factory
}

func (*Rest) IsBackground

func (r *Rest) IsBackground() bool

func (*Rest) Priority

func (r *Rest) Priority() int

func (*Rest) Run

func (r *Rest) Run(servers []configs.Server)

Jump to

Keyboard shortcuts

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