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: 20 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 struct

func New

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

New is archive service implementation.

func (*Service) ArcDuration

func (s *Service) ArcDuration(c context.Context, aid int64) (duration int64)

ArcDuration return archive duration, manager local cache

func (*Service) Close

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

Close kafaka consumer close.

func (*Service) SetLock

func (s *Service) SetLock(c context.Context, aid int64, plat, lock, lv int8) (err error)

SetLock set click lock by plat and lv

func (*Service) SetMidForbid

func (s *Service) SetMidForbid(c context.Context, mid int64, status int8) (err error)

SetMidForbid is

func (*Service) SetSpecial

func (s *Service) SetSpecial(c context.Context, aid, num int64, tp string) (err error)

SetSpecial http set special aid click

Jump to

Keyboard shortcuts

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