grpc

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewGrpcServer

func NewGrpcServer(cfg *purple.ServerConfig) (*Server, error)

func (*Server) CacheGet

Cache

func (*Server) CacheSet

func (s *Server) CacheSet(_ context.Context, req *proto.CacheSetRequest) (*proto.Empty, error)

func (*Server) CounterGet added in v0.1.6

Counter

func (*Server) CounterIncrement added in v0.1.6

func (*Server) FlagGet

Flag

func (*Server) FlagSet

func (s *Server) FlagSet(_ context.Context, req *proto.FlagSetRequest) (*proto.Empty, error)

func (*Server) KVDelete

func (s *Server) KVDelete(_ context.Context, location *proto.Location) (*proto.Empty, error)

func (*Server) KVGet

func (s *Server) KVGet(_ context.Context, location *proto.Location) (*proto.GetResponse, error)

KV

func (*Server) KVPut

func (s *Server) KVPut(_ context.Context, req *proto.PutRequest) (*proto.Empty, error)

func (*Server) SetAdd

func (*Server) SetGet

Sets

func (*Server) SetRemove

func (s *Server) SetRemove(_ context.Context, req *proto.ModifySetRequest) (*proto.SetResponse, error)

func (*Server) ShutDown

func (s *Server) ShutDown() error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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