memserver

package
v0.0.0-...-6611992 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package memserver provides an implementation of KeyValueService that resides in memory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	keyvalpb.UnimplementedKeyValueServiceServer
	// contains filtered or unexported fields
}

Server is a memory-based key/value server.

func (*Server) GetValue

func (s *Server) GetValue(ctx context.Context, req *keyvalpb.GetValueRequest) (*keyvalpb.Value, error)

GetValue implements keyvalpb.KeyValueServiceServer

func (*Server) HasValue

HasValue implements keyvalpb.KeyValueServiceServer

func (*Server) SetValue

SetValue implements keyvalpb.KeyValueServiceServer

Jump to

Keyboard shortcuts

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