server

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

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

Go to latest
Published: Jun 7, 2014 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join()

func Leave

func Leave()

func Run

func Run(bindAddr string, initialView *view.View)

Types

type AdminService

type AdminService int

func (*AdminService) Leave

func (r *AdminService) Leave(anything bool, reply *bool) error

func (*AdminService) Ping

func (r *AdminService) Ping(anything bool, reply *bool) error

func (*AdminService) Terminate

func (r *AdminService) Terminate(anything bool, reply *bool) error

type ContactQService

type ContactQService struct{}

func (*ContactQService) Read

func (nq *ContactQService) Read(arg struct{}, reply *Value) error

func (*ContactQService) Write

func (nq *ContactQService) Write(value Value, reply *struct{}) error

type NotifyMsg

type NotifyMsg struct {
	View   *view.View
	Sender view.Process
}

type NotifyQService

type NotifyQService struct{}

func (*NotifyQService) Notify

func (nq *NotifyQService) Notify(notifyMsg NotifyMsg, reply *struct{}) error

type RegisterService

type RegisterService int

---------- RPC Requests -------------

func (*RegisterService) GetCurrentView

func (r *RegisterService) GetCurrentView(value int, reply *view.View) error

func (*RegisterService) Read

func (r *RegisterService) Read(arg struct{}, reply *Value) error

func (*RegisterService) Reconfig

func (r *RegisterService) Reconfig(updates []view.Update, reply *struct{}) error

func (*RegisterService) Write

func (r *RegisterService) Write(value Value, reply *struct{}) error

type Value

type Value struct {
	Value     interface{}
	Timestamp int

	Err error
	// contains filtered or unexported fields
}

--------- Types ---------

type ViewSeq

type ViewSeq []*view.View

func (ViewSeq) Delete

func (viewSeq ViewSeq) Delete(toBeDeletedView *view.View) ViewSeq

func (ViewSeq) Equal

func (viewSeq ViewSeq) Equal(otherViewSeq ViewSeq) bool

func (ViewSeq) GetLeastUpdatedView

func (viewSeq ViewSeq) GetLeastUpdatedView() *view.View

func (ViewSeq) GetMostUpdatedView

func (viewSeq ViewSeq) GetMostUpdatedView() *view.View

func (ViewSeq) HasView

func (viewSeq ViewSeq) HasView(view *view.View) bool

Jump to

Keyboard shortcuts

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