rpctest

package
v0.0.0-...-653efa9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingReply

type PingReply struct {
	Message string
}

PingReply is the response object for RpcPutLocation

type PingReq

type PingReq struct {
	Message string
}

PingReq is the request object for RpcPing

type Server

type Server struct{}

func NewServer

func NewServer() *Server

NewServer creates the Server object and returns the pointer

func (*Server) RpcPing

func (s *Server) RpcPing(in *PingReq, reply *PingReply) (err error)

RpcPing simply does a len on the message path and returns the result

func (*Server) RpcPingLarge

func (s *Server) RpcPingLarge(in *PingReq, reply *PingReply) (err error)

RpcPingLarge simply does a len on the message path and returns the result along with a larger buffer.

func (*Server) RpcPingWithError

func (s *Server) RpcPingWithError(in *PingReq, reply *PingReply) (err error)

RpcPingWithError returns an error

Jump to

Keyboard shortcuts

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