Documentation
¶
Index ¶
- Variables
- func RegisterDownstreamServer(s *grpc.Server, srv DownstreamServer)
- func RegisterUpstreamServer(s *grpc.Server, srv UpstreamServer)
- type Change
- func (*Change) Descriptor() ([]byte, []int)
- func (m *Change) GetChangeType() ChangeType
- func (m *Change) GetIsDir() bool
- func (m *Change) GetMtimeUnix() int64
- func (m *Change) GetMtimeUnixNano() int64
- func (m *Change) GetPath() string
- func (m *Change) GetSize() int64
- func (*Change) ProtoMessage()
- func (m *Change) Reset()
- func (m *Change) String() string
- func (m *Change) XXX_DiscardUnknown()
- func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Change) XXX_Merge(src proto.Message)
- func (m *Change) XXX_Size() int
- func (m *Change) XXX_Unmarshal(b []byte) error
- type ChangeAmount
- func (*ChangeAmount) Descriptor() ([]byte, []int)
- func (m *ChangeAmount) GetAmount() int64
- func (*ChangeAmount) ProtoMessage()
- func (m *ChangeAmount) Reset()
- func (m *ChangeAmount) String() string
- func (m *ChangeAmount) XXX_DiscardUnknown()
- func (m *ChangeAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChangeAmount) XXX_Merge(src proto.Message)
- func (m *ChangeAmount) XXX_Size() int
- func (m *ChangeAmount) XXX_Unmarshal(b []byte) error
- type ChangeChunk
- func (*ChangeChunk) Descriptor() ([]byte, []int)
- func (m *ChangeChunk) GetChanges() []*Change
- func (*ChangeChunk) ProtoMessage()
- func (m *ChangeChunk) Reset()
- func (m *ChangeChunk) String() string
- func (m *ChangeChunk) XXX_DiscardUnknown()
- func (m *ChangeChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChangeChunk) XXX_Merge(src proto.Message)
- func (m *ChangeChunk) XXX_Size() int
- func (m *ChangeChunk) XXX_Unmarshal(b []byte) error
- type ChangeType
- type Chunk
- func (*Chunk) Descriptor() ([]byte, []int)
- func (m *Chunk) GetContent() []byte
- func (*Chunk) ProtoMessage()
- func (m *Chunk) Reset()
- func (m *Chunk) String() string
- func (m *Chunk) XXX_DiscardUnknown()
- func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Chunk) XXX_Merge(src proto.Message)
- func (m *Chunk) XXX_Size() int
- func (m *Chunk) XXX_Unmarshal(b []byte) error
- type DownstreamClient
- type DownstreamServer
- type Downstream_ChangesClient
- type Downstream_ChangesServer
- type Downstream_DownloadClient
- type Downstream_DownloadServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Paths
- func (*Paths) Descriptor() ([]byte, []int)
- func (m *Paths) GetPaths() []string
- func (*Paths) ProtoMessage()
- func (m *Paths) Reset()
- func (m *Paths) String() string
- func (m *Paths) XXX_DiscardUnknown()
- func (m *Paths) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Paths) XXX_Merge(src proto.Message)
- func (m *Paths) XXX_Size() int
- func (m *Paths) XXX_Unmarshal(b []byte) error
- type UpstreamClient
- type UpstreamServer
- type Upstream_RemoveClient
- type Upstream_RemoveServer
- type Upstream_UploadClient
- type Upstream_UploadServer
- type Watch
- func (*Watch) Descriptor() ([]byte, []int)
- func (m *Watch) GetExclude() []string
- func (m *Watch) GetPath() string
- func (*Watch) ProtoMessage()
- func (m *Watch) Reset()
- func (m *Watch) String() string
- func (m *Watch) XXX_DiscardUnknown()
- func (m *Watch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Watch) XXX_Merge(src proto.Message)
- func (m *Watch) XXX_Size() int
- func (m *Watch) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ChangeType_name = map[int32]string{
0: "CHANGE",
1: "DELETE",
}
View Source
var ChangeType_value = map[string]int32{
"CHANGE": 0,
"DELETE": 1,
}
Functions ¶
func RegisterDownstreamServer ¶
func RegisterDownstreamServer(s *grpc.Server, srv DownstreamServer)
func RegisterUpstreamServer ¶
func RegisterUpstreamServer(s *grpc.Server, srv UpstreamServer)
Types ¶
type Change ¶
type Change struct {
ChangeType ChangeType `protobuf:"varint,1,opt,name=ChangeType,proto3,enum=remote.ChangeType" json:"ChangeType,omitempty"`
Path string `protobuf:"bytes,2,opt,name=Path,proto3" json:"Path,omitempty"`
MtimeUnix int64 `protobuf:"varint,3,opt,name=MtimeUnix,proto3" json:"MtimeUnix,omitempty"`
MtimeUnixNano int64 `protobuf:"varint,4,opt,name=MtimeUnixNano,proto3" json:"MtimeUnixNano,omitempty"`
Size int64 `protobuf:"varint,5,opt,name=Size,proto3" json:"Size,omitempty"`
IsDir bool `protobuf:"varint,6,opt,name=IsDir,proto3" json:"IsDir,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Change) Descriptor ¶
func (*Change) GetChangeType ¶
func (m *Change) GetChangeType() ChangeType
func (*Change) GetMtimeUnix ¶
func (*Change) GetMtimeUnixNano ¶
func (*Change) ProtoMessage ¶
func (*Change) ProtoMessage()
func (*Change) XXX_DiscardUnknown ¶
func (m *Change) XXX_DiscardUnknown()
func (*Change) XXX_Marshal ¶
func (*Change) XXX_Unmarshal ¶
type ChangeAmount ¶
type ChangeAmount struct {
Amount int64 `protobuf:"varint,1,opt,name=Amount,proto3" json:"Amount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ChangeAmount) Descriptor ¶
func (*ChangeAmount) Descriptor() ([]byte, []int)
func (*ChangeAmount) GetAmount ¶
func (m *ChangeAmount) GetAmount() int64
func (*ChangeAmount) ProtoMessage ¶
func (*ChangeAmount) ProtoMessage()
func (*ChangeAmount) Reset ¶
func (m *ChangeAmount) Reset()
func (*ChangeAmount) String ¶
func (m *ChangeAmount) String() string
func (*ChangeAmount) XXX_DiscardUnknown ¶
func (m *ChangeAmount) XXX_DiscardUnknown()
func (*ChangeAmount) XXX_Marshal ¶
func (m *ChangeAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChangeAmount) XXX_Merge ¶
func (m *ChangeAmount) XXX_Merge(src proto.Message)
func (*ChangeAmount) XXX_Size ¶
func (m *ChangeAmount) XXX_Size() int
func (*ChangeAmount) XXX_Unmarshal ¶
func (m *ChangeAmount) XXX_Unmarshal(b []byte) error
type ChangeChunk ¶
type ChangeChunk struct {
Changes []*Change `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ChangeChunk) Descriptor ¶
func (*ChangeChunk) Descriptor() ([]byte, []int)
func (*ChangeChunk) GetChanges ¶
func (m *ChangeChunk) GetChanges() []*Change
func (*ChangeChunk) ProtoMessage ¶
func (*ChangeChunk) ProtoMessage()
func (*ChangeChunk) Reset ¶
func (m *ChangeChunk) Reset()
func (*ChangeChunk) String ¶
func (m *ChangeChunk) String() string
func (*ChangeChunk) XXX_DiscardUnknown ¶
func (m *ChangeChunk) XXX_DiscardUnknown()
func (*ChangeChunk) XXX_Marshal ¶
func (m *ChangeChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChangeChunk) XXX_Merge ¶
func (m *ChangeChunk) XXX_Merge(src proto.Message)
func (*ChangeChunk) XXX_Size ¶
func (m *ChangeChunk) XXX_Size() int
func (*ChangeChunk) XXX_Unmarshal ¶
func (m *ChangeChunk) XXX_Unmarshal(b []byte) error
type ChangeType ¶
type ChangeType int32
const ( ChangeType_CHANGE ChangeType = 0 ChangeType_DELETE ChangeType = 1 )
func (ChangeType) EnumDescriptor ¶
func (ChangeType) EnumDescriptor() ([]byte, []int)
func (ChangeType) String ¶
func (x ChangeType) String() string
type Chunk ¶
type Chunk struct {
Content []byte `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Chunk) Descriptor ¶
func (*Chunk) GetContent ¶
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
func (*Chunk) XXX_DiscardUnknown ¶
func (m *Chunk) XXX_DiscardUnknown()
func (*Chunk) XXX_Marshal ¶
func (*Chunk) XXX_Unmarshal ¶
type DownstreamClient ¶
type DownstreamClient interface {
Download(ctx context.Context, opts ...grpc.CallOption) (Downstream_DownloadClient, error)
Changes(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Downstream_ChangesClient, error)
ChangesCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ChangeAmount, error)
}
DownstreamClient is the client API for Downstream service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDownstreamClient ¶
func NewDownstreamClient(cc *grpc.ClientConn) DownstreamClient
type DownstreamServer ¶
type DownstreamServer interface {
Download(Downstream_DownloadServer) error
Changes(*Empty, Downstream_ChangesServer) error
ChangesCount(context.Context, *Empty) (*ChangeAmount, error)
}
DownstreamServer is the server API for Downstream service.
type Downstream_ChangesClient ¶
type Downstream_ChangesClient interface {
Recv() (*ChangeChunk, error)
grpc.ClientStream
}
type Downstream_ChangesServer ¶
type Downstream_ChangesServer interface {
Send(*ChangeChunk) error
grpc.ServerStream
}
type Empty ¶
type Empty struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type Paths ¶
type Paths struct {
Paths []string `protobuf:"bytes,1,rep,name=Paths,proto3" json:"Paths,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Paths) Descriptor ¶
func (*Paths) ProtoMessage ¶
func (*Paths) ProtoMessage()
func (*Paths) XXX_DiscardUnknown ¶
func (m *Paths) XXX_DiscardUnknown()
func (*Paths) XXX_Marshal ¶
func (*Paths) XXX_Unmarshal ¶
type UpstreamClient ¶
type UpstreamClient interface {
Upload(ctx context.Context, opts ...grpc.CallOption) (Upstream_UploadClient, error)
Remove(ctx context.Context, opts ...grpc.CallOption) (Upstream_RemoveClient, error)
}
UpstreamClient is the client API for Upstream service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUpstreamClient ¶
func NewUpstreamClient(cc *grpc.ClientConn) UpstreamClient
type UpstreamServer ¶
type UpstreamServer interface {
Upload(Upstream_UploadServer) error
Remove(Upstream_RemoveServer) error
}
UpstreamServer is the server API for Upstream service.
type Upstream_RemoveClient ¶
type Upstream_RemoveServer ¶
type Upstream_UploadClient ¶
type Upstream_UploadServer ¶
type Watch ¶
type Watch struct {
Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
Exclude []string `protobuf:"bytes,2,rep,name=Exclude,proto3" json:"Exclude,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Watch) Descriptor ¶
func (*Watch) GetExclude ¶
func (*Watch) ProtoMessage ¶
func (*Watch) ProtoMessage()
func (*Watch) XXX_DiscardUnknown ¶
func (m *Watch) XXX_DiscardUnknown()
func (*Watch) XXX_Marshal ¶
func (*Watch) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.