Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERR_RPC_CLOSED = errors.New("rpc closed") ERR_CLIENT_UNLOCKED = errors.New("client unlocked") )
Functions ¶
This section is empty.
Types ¶
type ClientLockGuard ¶
type ClientLockGuard struct {
// contains filtered or unexported fields
}
func (*ClientLockGuard) Get ¶
func (g *ClientLockGuard) Get() rpc.Client
func (*ClientLockGuard) IsUnlocked ¶
func (g *ClientLockGuard) IsUnlocked() bool
func (*ClientLockGuard) Unlock ¶
func (g *ClientLockGuard) Unlock()
type RpcGuard ¶
type RpcGuard struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts RpcOptions) (*RpcGuard, error)
func (*RpcGuard) GetClient ¶
func (r *RpcGuard) GetClient() (*ClientLockGuard, error)
type RpcOptions ¶
Click to show internal directories.
Click to hide internal directories.