service

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisterServices = []interface{}{}

Functions

func Register

func Register(service interface{})

func RegisterRpc

func RegisterRpc()

Types

type BaseService

type BaseService struct {
}

type Example

type Example struct {
}

func NewExample

func NewExample() *Example

func (*Example) Multiply

func (math *Example) Multiply(args map[string]interface{}, reply *int) error

相乘

type ServiceSystem

type ServiceSystem struct {
}

func NewServiceSystem

func NewServiceSystem() *ServiceSystem

func (*ServiceSystem) Ping

func (s *ServiceSystem) Ping(args map[string]interface{}, reply *string) error

ping

type ServiceTask

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

func NewServiceTask

func NewServiceTask() *ServiceTask

func (*ServiceTask) Delete

func (g *ServiceTask) Delete(args map[string]interface{}, reply *string) error

确认完成,删除任务记录

func (*ServiceTask) Publish

func (t *ServiceTask) Publish(args map[string]interface{}, reply *string) error

创建发布任务

func (*ServiceTask) Status

func (g *ServiceTask) Status(args map[string]interface{}, reply *string) error

获取发布任务执行结果

Jump to

Keyboard shortcuts

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