server

package
v0.0.0-...-4b7bac6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCServer

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

RPCServer implement Tx-Server

func NewRPCServer

func NewRPCServer() *RPCServer

NewRPCServer will return pointer to RPCServer

func (*RPCServer) ChangeStatus

func (s *RPCServer) ChangeStatus(ctx context.Context, in *pb.StatusRequest) (*pb.StatusReply, error)

ChangeStatus will change ownership

func (*RPCServer) Invalid

func (s *RPCServer) Invalid(srv pb.Maintainer_InvalidServer) error

Invalid stream will return the invalid key for your onw host

func (*RPCServer) Query

func (s *RPCServer) Query(ctx context.Context, in *pb.QueryRequest) (*pb.QueryReply, error)

Query state and storage

func (*RPCServer) Register

func (s *RPCServer) Register(ctx context.Context, in *pb.RegisterRequest) (*pb.RegisterReply, error)

Register will store name and host

Jump to

Keyboard shortcuts

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