Documentation ¶
Index ¶
- type Comms
- func (rc *Comms) GetLastModified(host *connect.Host, msg *pb.RsReadRequest) (*pb.RsTimestampResponse, error)
- func (rc *Comms) GetLastWrite(host *connect.Host, msg *pb.RsLastWriteRequest) (*pb.RsTimestampResponse, error)
- func (rc *Comms) Login(host *connect.Host, msg *pb.RsAuthenticationRequest) (*pb.RsAuthenticationResponse, error)
- func (rc *Comms) Read(host *connect.Host, msg *pb.RsReadRequest) (*pb.RsReadResponse, error)
- func (rc *Comms) ReadDir(host *connect.Host, msg *pb.RsReadRequest) (*pb.RsReadDirResponse, error)
- func (rc *Comms) Write(host *connect.Host, msg *pb.RsWriteRequest) (*messages.Ack, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comms ¶
type Comms struct {
*connect.ProtoComms
}
Comms is an object used for top-level remote sync client calls.
func NewClientComms ¶
NewClientComms returns a Comms object with given attributes.
func (*Comms) GetLastModified ¶
func (rc *Comms) GetLastModified(host *connect.Host, msg *pb.RsReadRequest) (*pb.RsTimestampResponse, error)
GetLastModified returns the last time a path was modified.
func (*Comms) GetLastWrite ¶
func (rc *Comms) GetLastWrite(host *connect.Host, msg *pb.RsLastWriteRequest) (*pb.RsTimestampResponse, error)
GetLastWrite returns the last time a remote sync server was modified.
func (*Comms) Login ¶
func (rc *Comms) Login(host *connect.Host, msg *pb.RsAuthenticationRequest) (*pb.RsAuthenticationResponse, error)
Login to the server, receiving an authentication token
func (*Comms) Read ¶
func (rc *Comms) Read(host *connect.Host, msg *pb.RsReadRequest) (*pb.RsReadResponse, error)
Read a resource from a RemoteSync server.
func (*Comms) ReadDir ¶
func (rc *Comms) ReadDir(host *connect.Host, msg *pb.RsReadRequest) (*pb.RsReadDirResponse, error)
ReadDir returns all entries in a given path.
Click to show internal directories.
Click to hide internal directories.