reg

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 4 Imported by: 1

Documentation

Overview

Package reg provides an RPC to register redis handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assigner

type Assigner func(string, interface{}) error

type Reg

type Reg struct {
	Srvr *atsock.RpcServer
	// contains filtered or unexported fields
}

func New

func New(assign Assigner, unassign Unassigner) (*Reg, error)

func (*Reg) Assign

func (reg *Reg) Assign(a args.Assign, _ *struct{}) error

Assign an RPC handler for the given redis key.

func (*Reg) Unassign

func (reg *Reg) Unassign(a args.Unassign, _ *struct{}) error

Assign the handler for the given redis key.

type Unassigner

type Unassigner func(string) error

Jump to

Keyboard shortcuts

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