options

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// 检查ROC调用的函数名称,并且返回一个最终的名称以及是否使用它
	CheckFuncName func(method string) (string, bool)
	// 在ROC被调用前,会执行该函数,你可以在这里完成一些保证同步的操作,如加锁
	OnBeforeROCCall func(obj interface{}, callpath *roc.Path,
		arg []byte)
	// 在ROC被调用后,会执行该函数,你可以在这里完成一些保证同步的操作,如加锁
	OnAfterROCCall func(obj interface{}, callpath *roc.Path,
		arg []byte)
}

Options options

func (*Options) Merge

func (o *Options) Merge(opt *Options)

Merge merge options

Jump to

Keyboard shortcuts

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