node

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log   hs.LogConf         `json:"log"`
	Mongo hs.MongoConf       `json:"mongo"`
	Bot   hs.TelegramBotConf `json:"bot"`
	MQ    hs.QueueConf       `json:"mq"`
}

type Node

type Node struct {
	Sugar *zap.SugaredLogger
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Node

func (*Node) Close

func (n *Node) Close(ctx context.Context)

func (*Node) Init

func (n *Node) Init(ctx context.Context) error

func (*Node) Serve

func (n *Node) Serve(ctx context.Context) error

Jump to

Keyboard shortcuts

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