service

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseIdentity

func ParseIdentity(id string) (birthday time.Time, gender string, err error)

ParseIdentity to birthday and gender

Types

type Item

type Item struct {
	Mid    int64
	Time   time.Time
	Action string
}

Item is

func (*Item) Compare

func (i *Item) Compare(other queue.Item) int

Compare is

func (*Item) HashCode

func (i *Item) HashCode() int64

HashCode is

type Service

type Service struct {
	ParsedRealnameInfoc *infoc.Infoc
	// contains filtered or unexported fields
}

Service struct of service.

func New

func New(c *conf.Config) (s *Service)

New create service instance and return.

func (*Service) CheckExpInit

func (s *Service) CheckExpInit(c context.Context, mid int64) (opers []*model.ExpOper, err error)

CheckExpInit check init user exp if exp not exist.

func (*Service) Close

func (s *Service) Close() (err error)

Close kafka consumer close.

func (*Service) Ping

func (s *Service) Ping(c context.Context) error

Ping check service health.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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