services

package
v0.0.0-...-6a014dc Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

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

func NewHub

func NewHub(db *sql.DB) *Hub

func (*Hub) StartService

func (hub *Hub) StartService(name string) error

type NewsService

type NewsService struct{}

func (*NewsService) Run

func (service *NewsService) Run(ctx context.Context) error

type Service

type Service interface {
	Run(context.Context) error
}

type Stats

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

Jump to

Keyboard shortcuts

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