callback_receiver

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Callback = "callback"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*model.ServiceEntity
	// contains filtered or unexported fields
}

此 Service 於 master 實作

func NewService

func NewService(config *viper.Viper, handler func(receiver *model.CallbackReceiver) error) *Service

func (*Service) Do

func (g *Service) Do(job *work.Job) error

func (*Service) GetRegisterInfo added in v0.0.22

func (g *Service) GetRegisterInfo() *model.JobInfo

func (*Service) Init added in v0.0.20

func (g *Service) Init(config *viper.Viper) *Service

func (*Service) SetHandler added in v0.0.20

func (g *Service) SetHandler(h func(receiver *model.CallbackReceiver) error) *Service

Jump to

Keyboard shortcuts

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