service

package
v0.0.0-...-e952dea Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatInt

func FormatInt(id, base uint64) string

Types

type Config

type Config struct {
	ListenAddr string
	URLPrefix  string

	BadgerCfg *badger.Cfg
	RedisCfg  *redis.Cfg
	MongoCfg  *mongo.Cfg
}

type Service

type Service struct {
	*Config
	*iris.Application

	DB db.DB
}

func New

func New(cfg *Config) *Service

func (*Service) Start

func (s *Service) Start()

Jump to

Keyboard shortcuts

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