Documentation ¶
Index ¶
- Constants
- Variables
- func InitSt()
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetArgs() []string
- func (m *Command) GetCli() string
- func (m *Command) GetId() string
- func (m *Command) GetResponse() []byte
- func (m *Command) GetResponseCount() int32
- func (m *Command) GetResponseId() int32
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Command) XXX_Merge(src proto.Message)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type File
- func (*File) Descriptor() ([]byte, []int)
- func (m *File) GetDateA() int64
- func (m *File) GetDateZ() int64
- func (m *File) GetFiles() []*File
- func (m *File) GetHashA() string
- func (m *File) GetHashZ() string
- func (m *File) GetNameA() string
- func (m *File) GetNameZ() string
- func (m *File) GetSizeA() int64
- func (m *File) GetSizeZ() int64
- func (*File) ProtoMessage()
- func (m *File) Reset()
- func (m *File) String() string
- func (m *File) XXX_DiscardUnknown()
- func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *File) XXX_Merge(src proto.Message)
- func (m *File) XXX_Size() int
- func (m *File) XXX_Unmarshal(b []byte) error
- type UserPass
- func (*UserPass) Descriptor() ([]byte, []int)
- func (m *UserPass) GetPassword() string
- func (m *UserPass) GetToken() string
- func (m *UserPass) GetUsername() string
- func (*UserPass) ProtoMessage()
- func (m *UserPass) Reset()
- func (m *UserPass) String() string
- func (m *UserPass) XXX_DiscardUnknown()
- func (m *UserPass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UserPass) XXX_Merge(src proto.Message)
- func (m *UserPass) XXX_Size() int
- func (m *UserPass) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( IO_FILENAME = "./syncit.io" MYK = "/my/k" MYS = "/my/s" MYP = "/my/p" )
Variables ¶
View Source
var PbMarshaler = &jsonpb.Marshaler{ EnumsAsInts: false, EmitDefaults: false, OrigName: true, }
View Source
var Secret = ""
Functions ¶
Types ¶
type Command ¶
type Command struct { Cli string `protobuf:"bytes,1,opt,name=cli,proto3" json:"cli,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` Response []byte `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` ResponseId int32 `protobuf:"varint,5,opt,name=responseId,proto3" json:"responseId,omitempty"` ResponseCount int32 `protobuf:"varint,6,opt,name=responseCount,proto3" json:"responseCount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Command) Descriptor ¶
func (*Command) GetResponse ¶
func (*Command) GetResponseCount ¶
func (*Command) GetResponseId ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_Unmarshal ¶
type File ¶
type File struct { NameA string `protobuf:"bytes,1,opt,name=nameA,proto3" json:"nameA,omitempty"` SizeA int64 `protobuf:"varint,2,opt,name=sizeA,proto3" json:"sizeA,omitempty"` DateA int64 `protobuf:"varint,3,opt,name=dateA,proto3" json:"dateA,omitempty"` HashA string `protobuf:"bytes,4,opt,name=hashA,proto3" json:"hashA,omitempty"` NameZ string `protobuf:"bytes,5,opt,name=nameZ,proto3" json:"nameZ,omitempty"` SizeZ int64 `protobuf:"varint,6,opt,name=sizeZ,proto3" json:"sizeZ,omitempty"` DateZ int64 `protobuf:"varint,7,opt,name=dateZ,proto3" json:"dateZ,omitempty"` HashZ string `protobuf:"bytes,8,opt,name=hashZ,proto3" json:"hashZ,omitempty"` Files []*File `protobuf:"bytes,9,rep,name=files,proto3" json:"files,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*File) Descriptor ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) XXX_DiscardUnknown ¶
func (m *File) XXX_DiscardUnknown()
func (*File) XXX_Unmarshal ¶
type UserPass ¶
type UserPass struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserPass) Descriptor ¶
func (*UserPass) GetPassword ¶
func (*UserPass) GetUsername ¶
func (*UserPass) ProtoMessage ¶
func (*UserPass) ProtoMessage()
func (*UserPass) XXX_DiscardUnknown ¶
func (m *UserPass) XXX_DiscardUnknown()
func (*UserPass) XXX_Marshal ¶
func (*UserPass) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.