core

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

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

func New

func New(opts ...Option) *Core

func (*Core) Run

func (core *Core) Run(ctx context.Context) error

func (*Core) Stop

func (core *Core) Stop() (err error)

type Option

type Option func(core *Core)

func WithRegistry

func WithRegistry(r registry.Registry) Option

func WithServers

func WithServers(srvs ...Server) Option

type Server

type Server interface {
	Run(ctx context.Context) error
	Stop(ctx context.Context) error
}

Directories

Path Synopsis
dao
telegram
Package telegram is the telegram notification package.
Package telegram is the telegram notification package.
servers

Jump to

Keyboard shortcuts

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