model

package
v0.0.0-...-442eafe Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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

func InitSt

func InitSt()

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) Descriptor() ([]byte, []int)

func (*Command) GetArgs

func (m *Command) GetArgs() []string

func (*Command) GetCli

func (m *Command) GetCli() string

func (*Command) GetId

func (m *Command) GetId() string

func (*Command) GetResponse

func (m *Command) GetResponse() []byte

func (*Command) GetResponseCount

func (m *Command) GetResponseCount() int32

func (*Command) GetResponseId

func (m *Command) GetResponseId() int32

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command) XXX_Merge

func (dst *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

func (m *Command) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*File) GetDateA

func (m *File) GetDateA() int64

func (*File) GetDateZ

func (m *File) GetDateZ() int64

func (*File) GetFiles

func (m *File) GetFiles() []*File

func (*File) GetHashA

func (m *File) GetHashA() string

func (*File) GetHashZ

func (m *File) GetHashZ() string

func (*File) GetNameA

func (m *File) GetNameA() string

func (*File) GetNameZ

func (m *File) GetNameZ() string

func (*File) GetSizeA

func (m *File) GetSizeA() int64

func (*File) GetSizeZ

func (m *File) GetSizeZ() int64

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

func (*File) XXX_DiscardUnknown

func (m *File) XXX_DiscardUnknown()

func (*File) XXX_Marshal

func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*File) XXX_Merge

func (dst *File) XXX_Merge(src proto.Message)

func (*File) XXX_Size

func (m *File) XXX_Size() int

func (*File) XXX_Unmarshal

func (m *File) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*UserPass) GetPassword

func (m *UserPass) GetPassword() string

func (*UserPass) GetToken

func (m *UserPass) GetToken() string

func (*UserPass) GetUsername

func (m *UserPass) GetUsername() string

func (*UserPass) ProtoMessage

func (*UserPass) ProtoMessage()

func (*UserPass) Reset

func (m *UserPass) Reset()

func (*UserPass) String

func (m *UserPass) String() string

func (*UserPass) XXX_DiscardUnknown

func (m *UserPass) XXX_DiscardUnknown()

func (*UserPass) XXX_Marshal

func (m *UserPass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserPass) XXX_Merge

func (dst *UserPass) XXX_Merge(src proto.Message)

func (*UserPass) XXX_Size

func (m *UserPass) XXX_Size() int

func (*UserPass) XXX_Unmarshal

func (m *UserPass) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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