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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service service.

func New

func New(c *conf.Config) *Service

New service new.

func (*Service) Close

func (s *Service) Close()

Close dao

func (*Service) Ping

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

Ping check server ok

func (*Service) RegionArcs3

func (s *Service) RegionArcs3(c context.Context, rid int32, pn, ps int) (arcs []*api.Arc, count int, err error)

RegionArcs3 get new arcs of region.

func (*Service) RegionTagArcs3

func (s *Service) RegionTagArcs3(c context.Context, rid int32, tagID int64, pn, ps int) (arcs []*api.Arc, count int, err error)

RegionTagArcs3 get new arcs of region and hot tag.

func (*Service) RegionTotal

func (s *Service) RegionTotal(c context.Context) (res map[string]int)

RegionTotal total dynamic of regin

func (*Service) RegionsArcs3

func (s *Service) RegionsArcs3(c context.Context, rids []int32, count int) (mArcs map[int32][]*api.Arc, err error)

RegionsArcs3 get batch new arcs of regions.

Jump to

Keyboard shortcuts

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