remote

package
v0.0.0-...-17dc2c5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package remote provides an RPC wrapper around the core DB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartRPC

func StartRPC(db *core.DB, addr string) (string, func(), error)

Types

type DBRemote

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

func (*DBRemote) Delete

func (remote *DBRemote) Delete(args *DeleteArgs, _ *struct{}) error

func (*DBRemote) Get

func (remote *DBRemote) Get(args *GetArgs, reply *string) error

func (*DBRemote) Set

func (remote *DBRemote) Set(args *SetArgs, _ *struct{}) error

type DeleteArgs

type DeleteArgs struct {
	Key string
}

type GetArgs

type GetArgs struct {
	Key string
}

type SetArgs

type SetArgs struct {
	Key string
	Val string
}

Jump to

Keyboard shortcuts

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