service

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfgJsonParser added in v1.0.0

type CfgJsonParser struct {
	FileName string
	// contains filtered or unexported fields
}

func (*CfgJsonParser) GetCfg added in v1.0.0

func (p *CfgJsonParser) GetCfg(name string) (ret interface{}, err error)

func (*CfgJsonParser) Parse added in v1.0.0

func (p *CfgJsonParser) Parse(l logger.Interface, c *app.Config) error

func (*CfgJsonParser) WebConfigPaserHandle added in v1.0.0

func (p *CfgJsonParser) WebConfigPaserHandle() app.WebParseConfig

type CfgPaser

type CfgPaser interface {
	Parse(logger.Interface, *app.Config) error
	GetCfg(string) (interface{}, error)
}

type IPDBService

type IPDBService struct {
	Val ipdb.DateBase
	// contains filtered or unexported fields
}

** IPDBService

func (*IPDBService) Close

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

func (*IPDBService) ParseConfig

func (s *IPDBService) ParseConfig(l logger.Interface, c *app.Config) error

func (*IPDBService) Run

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

type MySQLService

type MySQLService struct {
	Parser CfgPaser
	Val    db.MysqlService
}

** MySQLService

func (*MySQLService) Close

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

func (*MySQLService) ParseConfig

func (s *MySQLService) ParseConfig(l logger.Interface, c *app.Config) error

func (*MySQLService) Run

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

type RedisService

type RedisService struct {
	Parser CfgPaser
	Val    db.RedisService
}

** RedisService

func (*RedisService) Close

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

func (*RedisService) ParseConfig

func (s *RedisService) ParseConfig(l logger.Interface, c *app.Config) error

func (*RedisService) Run

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

type SessionService

type SessionService struct {
	Parser CfgPaser
	Val    session.Service
}

** SessionService

func (*SessionService) Close

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

func (*SessionService) ParseConfig

func (s *SessionService) ParseConfig(l logger.Interface, c *app.Config) error

func (*SessionService) Run

Jump to

Keyboard shortcuts

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