Documentation
¶
Index ¶
Constants ¶
View Source
const DeadPings = 5
the viewserver will declare a client dead if it misses this many Ping RPCs in a row.
View Source
const PingInterval = time.Millisecond * 100
clients should send a Ping RPC this often, to tell the viewservice that the client is alive.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clerk ¶
type Clerk struct {
// contains filtered or unexported fields
}
the viewservice Clerk lives in the client and maintains a little state.
type ViewServer ¶
type ViewServer struct {
// contains filtered or unexported fields
}
func StartServer ¶
func StartServer(me string) *ViewServer
func (*ViewServer) Get ¶
func (vs *ViewServer) Get(args *GetArgs, reply *GetReply) error
server Get() RPC handler.
func (*ViewServer) GetRPCCount ¶
func (vs *ViewServer) GetRPCCount() int32
please don't change this function.
func (*ViewServer) Kill ¶
func (vs *ViewServer) Kill()
tell the server to shut itself down. for testing. please don't change these two functions.
Click to show internal directories.
Click to hide internal directories.