distobj

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQueueName

func GetQueueName(iface interface{}, option Option) string

func Invoke

func Invoke(path string, config string, methodName string, params ...interface{}) ([]interface{}, error)

func Register

func Register(iface interface{}, obj interface{}, options ...Option) error

Types

type Option

type Option struct {
	Config    string
	NameSpace string
	NumWorker int
}

func GetDefaultOption

func GetDefaultOption() Option

type Request

type Request struct {
	MethodName string
	Params     []interface{}
}

type Response

type Response struct {
	Results []interface{}
}

type StringError

type StringError struct {
	Msg string
}

Jump to

Keyboard shortcuts

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