app

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *_Config

func GetCmdApp

func GetCmdApp() *_CmdApplication

func GetWebApp

func GetWebApp() *_WebApplication

func ParseConfig

func ParseConfig(fName string, obj interface{}) error

Types

type CmdFunc

type CmdFunc func(ctx *cli.Context, l logger.Interface) error

type IPDBService

type IPDBService struct {
	Val ipdb.DateBase
}

** IPDBService

func (*IPDBService) Close

func (s *IPDBService) Close(l logger.Interface) error

func (*IPDBService) ParseConfig

func (s *IPDBService) ParseConfig(l logger.Interface) error

func (*IPDBService) Run

func (s *IPDBService) Run(l logger.Interface) error

type MySQLService

type MySQLService struct {
	Val db.MysqlService
	// contains filtered or unexported fields
}

** MySQLService

func (*MySQLService) Close

func (s *MySQLService) Close(l logger.Interface) error

func (*MySQLService) ParseConfig

func (s *MySQLService) ParseConfig(l logger.Interface) error

func (*MySQLService) Run

func (s *MySQLService) Run(l logger.Interface) error

type PassiveCacheService

type PassiveCacheService struct {
	Val cache.PassiveCache
}

** PassiveCacheService

func (*PassiveCacheService) Close

func (*PassiveCacheService) ParseConfig

func (s *PassiveCacheService) ParseConfig(l logger.Interface) error

func (*PassiveCacheService) Run

type ProactiveCacheService

type ProactiveCacheService struct {
	Val cache.ProactiveCache
}

** ProactiveCacheService

func (*ProactiveCacheService) Close

func (*ProactiveCacheService) ParseConfig

func (s *ProactiveCacheService) ParseConfig(l logger.Interface) error

func (*ProactiveCacheService) Run

type RedisService

type RedisService struct {
	Val db.RedisService
	// contains filtered or unexported fields
}

** RedisService

func (*RedisService) Close

func (s *RedisService) Close(l logger.Interface) error

func (*RedisService) ParseConfig

func (s *RedisService) ParseConfig(l logger.Interface) error

func (*RedisService) Run

func (s *RedisService) Run(l logger.Interface) error

type Service

type Service interface {
	ParseConfig(logger.Interface) error
	Run(logger.Interface) error
	Close(logger.Interface) error
}

type SessionService

type SessionService struct {
	Val session.Service
	// contains filtered or unexported fields
}

** SessionService

func (*SessionService) Close

func (s *SessionService) Close(l logger.Interface) error

func (*SessionService) ParseConfig

func (s *SessionService) ParseConfig(l logger.Interface) error

func (*SessionService) Run

type WebFlowHook

type WebFlowHook interface {
	WebServiceBefore()
	WebStartBefore()
	WebCloseBefore()
}

type WebRouterHandle

type WebRouterHandle func(l logger.Interface, mux *chi.Mux) error

Jump to

Keyboard shortcuts

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