Documentation ¶
Index ¶
- Constants
- Variables
- func MustRegisterDomain(domain *Domain)
- func MustRegisterStatus(status *Status)
- type Address
- func NewAddress(entities ...interface{}) *Address
- func NewAddressEmailFromString(str string, domain ...interface{}) *Address
- func NewAddressFromString(str string) *Address
- func NewAddressUserIDFromString(str string, domain ...interface{}) *Address
- func NewAddressUuidFromString(str string, domain ...interface{}) *Address
- func NewAddressUuidRandom(domain ...interface{}) *Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) Domain() *Domain
- func (x *Address) Ensure() *Address
- func (x *Address) FullString() string
- func (m *Address) GetAddress() isAddress_Address
- func (x *Address) GetCustom() string
- func (x *Address) GetDigest() *Digest
- func (x *Address) GetDirname() *Dirname
- func (x *Address) GetDomain() *Domain
- func (x *Address) GetEmail() *Email
- func (x *Address) GetExplicitDomain() *Domain
- func (x *Address) GetFilename() *Filename
- func (x *Address) GetKafka() *KafkaAddress
- func (x *Address) GetMachineId() *MachineID
- func (x *Address) GetS3() *S3Address
- func (x *Address) GetUrl() *URL
- func (x *Address) GetUserId() *UserID
- func (x *Address) GetUuid() *UUID
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) Set(address interface{}) *Address
- func (x *Address) SetExplicitDomain(domain *Domain) *Address
- func (x *Address) String() string
- type AddressList
- func (x *AddressList) All(domains ...*Domain) []*Address
- func (x *AddressList) Append(addresses ...*Address) *AddressList
- func (x *AddressList) Delete(domains ...*Domain) *AddressList
- func (*AddressList) Descriptor() ([]byte, []int)deprecated
- func (x *AddressList) Ensure() *AddressList
- func (x *AddressList) Exclude(domains ...*Domain) *AddressList
- func (x *AddressList) First(domain ...*Domain) *Address
- func (x *AddressList) FirstOf(domains ...*Domain) *Address
- func (x *AddressList) FullString() string
- func (x *AddressList) GetAddresses() []*Address
- func (x *AddressList) GetDomain() *Domain
- func (x *AddressList) Has(domain ...*Domain) bool
- func (x *AddressList) HasDomain(domain *Domain) bool
- func (x *AddressList) Last(domain ...*Domain) *Address
- func (x *AddressList) LastOf(domains ...*Domain) *Address
- func (x *AddressList) Len(domain ...*Domain) int
- func (x *AddressList) LenOf(domain *Domain) int
- func (*AddressList) ProtoMessage()
- func (x *AddressList) ProtoReflect() protoreflect.Message
- func (x *AddressList) Replace(addresses ...*Address) *AddressList
- func (x *AddressList) Reset()
- func (x *AddressList) Select(domains ...*Domain) *AddressList
- func (x *AddressList) Slice(a, b int) []*Address
- func (x *AddressList) String() string
- type AddressMap
- func (m *AddressMap) All(domains ...*Domain) []*Address
- func (m *AddressMap) Append(entities ...interface{}) *AddressMap
- func (x *AddressMap) Collapse() *AddressList
- func (*AddressMap) Descriptor() ([]byte, []int)deprecated
- func (x *AddressMap) Ensure() *AddressMap
- func (x *AddressMap) EnsureList(domain *Domain) *AddressList
- func (m *AddressMap) First(domains ...*Domain) *Address
- func (x *AddressMap) GetDomain() *Domain
- func (x *AddressMap) GetList(domain *Domain) *AddressList
- func (x *AddressMap) GetLists() []*AddressList
- func (x *AddressMap) GetMap() map[string]*AddressList
- func (m *AddressMap) Has(domains ...*Domain) bool
- func (m *AddressMap) Len(domains ...*Domain) int
- func (x *AddressMap) NewList(domain *Domain) *AddressList
- func (*AddressMap) ProtoMessage()
- func (x *AddressMap) ProtoReflect() protoreflect.Message
- func (m *AddressMap) Replace(entities ...interface{}) *AddressMap
- func (m *AddressMap) ReplaceAddresses(domain *Domain, deleteDomains []*Domain, addresses ...*Address) *AddressMap
- func (m *AddressMap) ReplaceList(domain *Domain, addresses ...*Address) *AddressMap
- func (x *AddressMap) Reset()
- func (m *AddressMap) Set(entities ...interface{}) *AddressMap
- func (x *AddressMap) SetList(domain *Domain, list *AddressList) *AddressMap
- func (x *AddressMap) String() string
- type Address_Custom
- type Address_Digest
- type Address_Dirname
- type Address_Domain
- type Address_Email
- type Address_Filename
- type Address_Kafka
- type Address_MachineId
- type Address_S3
- type Address_Url
- type Address_UserId
- type Address_Uuid
- type Compression
- func (*Compression) Descriptor() ([]byte, []int)deprecated
- func (x *Compression) Ensure(_type int32) *Compression
- func (x *Compression) GetName() string
- func (x *Compression) GetType() int32
- func (*Compression) ProtoMessage()
- func (x *Compression) ProtoReflect() protoreflect.Message
- func (x *Compression) Reset()
- func (x *Compression) String() string
- type Compressor
- type DataChunk
- func (*DataChunk) Descriptor() ([]byte, []int)deprecated
- func (x *DataChunk) EnsureProperties() *DataChunkProperties
- func (x *DataChunk) GetData() []byte
- func (x *DataChunk) GetDataLen() int
- func (x *DataChunk) GetLast() bool
- func (x *DataChunk) GetOffset() int64
- func (x *DataChunk) GetProperties() *DataChunkProperties
- func (*DataChunk) ProtoMessage()
- func (x *DataChunk) ProtoReflect() protoreflect.Message
- func (x *DataChunk) Reset()
- func (x *DataChunk) SetData(data []byte)
- func (x *DataChunk) SetLast(last bool)
- func (x *DataChunk) SetOffset(offset int64)
- func (x *DataChunk) SetProperties(props *DataChunkProperties)
- func (x *DataChunk) String() string
- type DataChunkFile
- func (f *DataChunkFile) Close() error
- func (f *DataChunkFile) GetOffset() int64
- func (f *DataChunkFile) Read(p []byte) (n int, err error)
- func (f *DataChunkFile) ReadFrom(src io.Reader) (n int64, err error)
- func (f *DataChunkFile) Write(p []byte) (n int, err error)
- func (f *DataChunkFile) WriteTo(dst io.Writer) (n int64, err error)
- type DataChunkProperties
- func (*DataChunkProperties) Descriptor() ([]byte, []int)deprecated
- func (x *DataChunkProperties) GetDigest() *Digest
- func (x *DataChunkProperties) GetLast() bool
- func (x *DataChunkProperties) GetLen() int64
- func (x *DataChunkProperties) GetOffset() int64
- func (x *DataChunkProperties) GetTotal() int64
- func (x *DataChunkProperties) HasDigest() bool
- func (x *DataChunkProperties) HasLast() bool
- func (x *DataChunkProperties) HasLen() bool
- func (x *DataChunkProperties) HasOffset() bool
- func (x *DataChunkProperties) HasTotal() bool
- func (*DataChunkProperties) ProtoMessage()
- func (x *DataChunkProperties) ProtoReflect() protoreflect.Message
- func (x *DataChunkProperties) Reset()
- func (x *DataChunkProperties) SetDigest(digest *Digest) *DataChunkProperties
- func (x *DataChunkProperties) SetLast(last bool) *DataChunkProperties
- func (x *DataChunkProperties) SetLen(len int64) *DataChunkProperties
- func (x *DataChunkProperties) SetOffset(offset int64) *DataChunkProperties
- func (x *DataChunkProperties) SetTotal(total int64) *DataChunkProperties
- func (x *DataChunkProperties) String() string
- type DataPacket
- func (*DataPacket) Descriptor() ([]byte, []int)deprecated
- func (x *DataPacket) EnsureDataChunk() *DataChunk
- func (x *DataPacket) EnsureIDataChunk() IDataChunk
- func (x *DataPacket) EnsureStreamOptions() *PresentationOptions
- func (x *DataPacket) GetData() []byte
- func (x *DataPacket) GetDataChunk() *DataChunk
- func (x *DataPacket) GetDataLen() int
- func (x *DataPacket) GetIDataChunk() IDataChunk
- func (x *DataPacket) GetLast() bool
- func (x *DataPacket) GetOffset() int64
- func (x *DataPacket) GetPayloadMetadata() *Metadata
- func (x *DataPacket) GetStreamOptions() *PresentationOptions
- func (*DataPacket) ProtoMessage()
- func (x *DataPacket) ProtoReflect() protoreflect.Message
- func (x *DataPacket) Reset()
- func (x *DataPacket) SetData(data []byte)
- func (x *DataPacket) SetDataChunk(chunk *DataChunk)
- func (x *DataPacket) SetLast(last bool)
- func (x *DataPacket) SetOffset(offset int64)
- func (x *DataPacket) SetPayloadMetadata(m *Metadata)
- func (x *DataPacket) SetStreamOptions(o *PresentationOptions)
- func (x *DataPacket) String() string
- type DataPacketFile
- func (f *DataPacketFile) EnsurePayloadMetadata() *Metadata
- func (f *DataPacketFile) EnsureStreamOptions() *PresentationOptions
- func (f *DataPacketFile) GetFilename() string
- func (f *DataPacketFile) GetPayloadMetadata() *Metadata
- func (f *DataPacketFile) GetStreamOptions() *PresentationOptions
- func (f *DataPacketFile) Name() string
- func (f *DataPacketFile) NewIDataChunk(offsetter GetOffsetter) IDataChunk
- func (f *DataPacketFile) Recv() (IDataChunk, error)
- func (f *DataPacketFile) Send(iDataChunk IDataChunk) error
- func (f *DataPacketFile) SetFilename(filename string) *DataPacketFile
- func (f *DataPacketFile) SetPayloadMetadata(payload *Metadata)
- func (f *DataPacketFile) SetStreamOptions(opts *PresentationOptions)
- type DataPacketFileOptions
- func (opts *DataPacketFileOptions) GetCompress() bool
- func (opts *DataPacketFileOptions) GetDecompress() bool
- func (opts *DataPacketFileOptions) GetHeader() *Metadata
- func (opts *DataPacketFileOptions) GetMetadata() *Metadata
- func (opts *DataPacketFileOptions) SetCompress(compress bool) *DataPacketFileOptions
- func (opts *DataPacketFileOptions) SetDecompress(decompress bool) *DataPacketFileOptions
- func (opts *DataPacketFileOptions) SetHeader(header *Metadata) *DataPacketFileOptions
- func (opts *DataPacketFileOptions) SetMetadata(meta *Metadata) *DataPacketFileOptions
- type DataPacketFileWithOptions
- func OpenDataPacketFileWOptions(writer DataPacketWriter, reader DataPacketReader, ...) (*DataPacketFileWithOptions, error)
- func OpenDataPacketFileWOptionsForRead(reader DataPacketReader, decompress bool) (*DataPacketFileWithOptions, error)
- func OpenDataPacketFileWOptionsForWrite(writer DataPacketWriter, compress bool, filename ...string) (*DataPacketFileWithOptions, error)
- func (f *DataPacketFileWithOptions) Close() error
- func (f *DataPacketFileWithOptions) GetDataPacketFile() *DataPacketFile
- func (f *DataPacketFileWithOptions) Read(p []byte) (n int, err error)
- func (f *DataPacketFileWithOptions) ReadFrom(src io.Reader) (int64, error)
- func (f *DataPacketFileWithOptions) Write(p []byte) (n int, err error)
- func (f *DataPacketFileWithOptions) WriteTo(dst io.Writer) (int64, error)
- func (f *DataPacketFileWithOptions) WriteToBuf() (int64, *bytes.Buffer, error)
- type DataPacketReader
- type DataPacketWriter
- type DiffTask
- func (*DiffTask) Descriptor() ([]byte, []int)deprecated
- func (x *DiffTask) GetA() *Address
- func (x *DiffTask) GetB() *Address
- func (x *DiffTask) GetMeta() *Address
- func (*DiffTask) ProtoMessage()
- func (x *DiffTask) ProtoReflect() protoreflect.Message
- func (x *DiffTask) Reset()
- func (x *DiffTask) String() string
- type Digest
- func (*Digest) Descriptor() ([]byte, []int)deprecated
- func (x *Digest) GetData() []byte
- func (x *Digest) GetType() DigestType
- func (*Digest) ProtoMessage()
- func (x *Digest) ProtoReflect() protoreflect.Message
- func (x *Digest) Reset()
- func (x *Digest) SetData(data []byte) *Digest
- func (x *Digest) SetDataFromString(data string) *Digest
- func (x *Digest) SetType(_type DigestType) *Digest
- func (x *Digest) String() string
- type DigestType
- type Dirname
- func (*Dirname) Descriptor() ([]byte, []int)deprecated
- func (x *Dirname) Equals(dirname *Dirname) bool
- func (x *Dirname) GetDirname() string
- func (*Dirname) ProtoMessage()
- func (x *Dirname) ProtoReflect() protoreflect.Message
- func (x *Dirname) Reset()
- func (x *Dirname) Set(dirname string) *Dirname
- func (x *Dirname) String() string
- type Domain
- func (*Domain) Descriptor() ([]byte, []int)deprecated
- func (x *Domain) Ensure() *Domain
- func (x *Domain) Equals(domain *Domain) bool
- func (x *Domain) GetName() string
- func (*Domain) ProtoMessage()
- func (x *Domain) ProtoReflect() protoreflect.Message
- func (x *Domain) Reset()
- func (x *Domain) SetName(name string) *Domain
- func (x *Domain) String() string
- type Email
- type Encoding
- func (*Encoding) Descriptor() ([]byte, []int)deprecated
- func (x *Encoding) Equals(encoding *Encoding) bool
- func (x *Encoding) GetMethod() string
- func (*Encoding) ProtoMessage()
- func (x *Encoding) ProtoReflect() protoreflect.Message
- func (x *Encoding) Reset()
- func (x *Encoding) Set(method string) *Encoding
- func (x *Encoding) String() string
- type Enum
- func (e *Enum) CastRegister(name string, value interface{}) bool
- func (e *Enum) GetName(what interface{}) string
- func (e *Enum) GetValue(what interface{}) int32
- func (e *Enum) GetValues(whats ...interface{}) (res []int32)
- func (e *Enum) Has(what interface{}) bool
- func (e *Enum) HasLower(name string) bool
- func (e *Enum) HasUpper(name string) bool
- func (e *Enum) Lower(name string) (int32, bool)
- func (e *Enum) MustCastRegister(name string, value interface{}) bool
- func (e *Enum) MustGetLower(name string) int32
- func (e *Enum) MustGetLowers(names ...string) []int32
- func (e *Enum) MustGetName(what interface{}) string
- func (e *Enum) MustGetUpper(name string) int32
- func (e *Enum) MustGetUppers(names ...string) []int32
- func (e *Enum) MustGetValue(what interface{}) int32
- func (e *Enum) MustGetValues(whats ...interface{}) (res []int32)
- func (e *Enum) MustRegister(name string, value int32) bool
- func (e *Enum) Name(what interface{}) (string, bool)
- func (e *Enum) Names() []string
- func (e *Enum) Register(name string, value int32) bool
- func (e *Enum) RegisterLower(name string, value int32) bool
- func (e *Enum) RegisterUpper(name string, value int32) bool
- func (e *Enum) Upper(name string) (int32, bool)
- func (e *Enum) Value(what interface{}) (int32, bool)
- func (e *Enum) Values() []int32
- type Error
- type ErrorDetail
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetData() []byte
- func (x *File) GetFilename() *Filename
- func (x *File) Len() int
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) SetData(data []byte) *File
- func (x *File) SetFilename(filename string) *File
- func (x *File) String() string
- type Filename
- func (*Filename) Descriptor() ([]byte, []int)deprecated
- func (x *Filename) Ensure() *Filename
- func (x *Filename) Equals(filename *Filename) bool
- func (x *Filename) GetFilename() string
- func (*Filename) ProtoMessage()
- func (x *Filename) ProtoReflect() protoreflect.Message
- func (x *Filename) Reset()
- func (x *Filename) Set(filename string) *Filename
- func (x *Filename) String() string
- type GetOffsetter
- type HealthCheckRequest
- type HealthCheckResponse
- type IDataChunk
- type IDataChunkFile
- type IDataChunkTransport
- type KafkaAddress
- func (*KafkaAddress) Descriptor() ([]byte, []int)deprecated
- func (x *KafkaAddress) GetPartition() int32
- func (x *KafkaAddress) GetTopic() string
- func (x *KafkaAddress) GetTopics() []string
- func (*KafkaAddress) ProtoMessage()
- func (x *KafkaAddress) ProtoReflect() protoreflect.Message
- func (x *KafkaAddress) Reset()
- func (x *KafkaAddress) String() string
- type KafkaEndpoint
- type MachineID
- type Metadata
- func (x *Metadata) Append(entities ...interface{}) *Metadata
- func (x *Metadata) CreateTimestamp() *Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) EnsureAddresses() *AddressMap
- func (x *Metadata) EnsureModes() *SliceInt32
- func (x *Metadata) EnsureProperties() *DataChunkProperties
- func (x *Metadata) EnsureStatuses() *SliceInt32
- func (x *Metadata) EnsureTypes() *SliceInt32
- func (x *Metadata) EnsureVersions() *SliceInt32
- func (x *Metadata) GetAddress() *UUID
- func (x *Metadata) GetAddresses() *AddressMap
- func (x *Metadata) GetAssetID() *MachineID
- func (x *Metadata) GetContextUuid() *UUID
- func (x *Metadata) GetCustom() string
- func (x *Metadata) GetDescription() string
- func (x *Metadata) GetDirname() string
- func (x *Metadata) GetDomain() *Domain
- func (x *Metadata) GetFilename() string
- func (x *Metadata) GetMachineID() *MachineID
- func (x *Metadata) GetMode() int32
- func (x *Metadata) GetModes() *SliceInt32
- func (x *Metadata) GetName() string
- func (x *Metadata) GetProperties() *DataChunkProperties
- func (x *Metadata) GetResultDomain() *Domain
- func (x *Metadata) GetStatus() int32
- func (x *Metadata) GetStatuses() *SliceInt32
- func (x *Metadata) GetTaskUuid() *UUID
- func (x *Metadata) GetTs() *timestamppb.Timestamp
- func (x *Metadata) GetType() int32
- func (x *Metadata) GetTypes() *SliceInt32
- func (x *Metadata) GetUserID() *UserID
- func (x *Metadata) GetUuid() *UUID
- func (x *Metadata) GetVersion() int32
- func (x *Metadata) GetVersions() *SliceInt32
- func (x *Metadata) Has(domain ...*Domain) bool
- func (x *Metadata) HasAddresses() bool
- func (x *Metadata) HasDescription() bool
- func (x *Metadata) HasMode() bool
- func (x *Metadata) HasModes() bool
- func (x *Metadata) HasName() bool
- func (x *Metadata) HasProperties() bool
- func (x *Metadata) HasStatus() bool
- func (x *Metadata) HasStatuses() bool
- func (x *Metadata) HasTimestamp() bool
- func (x *Metadata) HasType() bool
- func (x *Metadata) HasTypes() bool
- func (x *Metadata) HasVersion() bool
- func (x *Metadata) HasVersions() bool
- func (x *Metadata) Log()
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) Set(entities ...interface{}) *Metadata
- func (x *Metadata) SetAddress(address *Address) *Metadata
- func (x *Metadata) SetAddresses(addresses *AddressMap) *Metadata
- func (x *Metadata) SetAssetID(assetID *MachineID) *Metadata
- func (x *Metadata) SetContextUUID(uuid *UUID) *Metadata
- func (x *Metadata) SetCustom(s string) *Metadata
- func (x *Metadata) SetDescription(description string) *Metadata
- func (x *Metadata) SetDirname(dirname string) *Metadata
- func (x *Metadata) SetDomain(domain *Domain) *Metadata
- func (x *Metadata) SetFilename(filename string) *Metadata
- func (x *Metadata) SetKafka(topic string, partition int32) *Metadata
- func (x *Metadata) SetMachineID(machineID *MachineID) *Metadata
- func (x *Metadata) SetMode(mode int32) *Metadata
- func (x *Metadata) SetModes(modes *SliceInt32) *Metadata
- func (x *Metadata) SetName(name string) *Metadata
- func (x *Metadata) SetProperties(properties *DataChunkProperties) *Metadata
- func (x *Metadata) SetRandomUuid(domains ...*Domain) *Metadata
- func (x *Metadata) SetResultDomain(domain *Domain) *Metadata
- func (x *Metadata) SetS3(bucket, object string) *Metadata
- func (x *Metadata) SetStatus(status int32) *Metadata
- func (x *Metadata) SetStatuses(statuses *SliceInt32) *Metadata
- func (x *Metadata) SetTaskUUID(uuid *UUID) *Metadata
- func (x *Metadata) SetTimestamp(seconds int64, nanos int32) *Metadata
- func (x *Metadata) SetType(_type int32) *Metadata
- func (x *Metadata) SetTypes(types *SliceInt32) *Metadata
- func (x *Metadata) SetURL(url string) *Metadata
- func (x *Metadata) SetUUID(uuid *UUID) *Metadata
- func (x *Metadata) SetUserID(userID *UserID) *Metadata
- func (x *Metadata) SetUuidFromString(id string, domain ...*Domain) *Metadata
- func (x *Metadata) SetVersion(version int32) *Metadata
- func (x *Metadata) SetVersions(versions *SliceInt32) *Metadata
- func (x *Metadata) String() string
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)deprecated
- func (x *Metric) GetBytesValue() []byte
- func (x *Metric) GetDescription() string
- func (x *Metric) GetDoubleValue() float64
- func (x *Metric) GetInt32Value() int32
- func (x *Metric) GetInt64Value() int64
- func (x *Metric) GetName() string
- func (x *Metric) GetStringValue() string
- func (x *Metric) GetTs() *timestamppb.Timestamp
- func (x *Metric) GetType() MetricType
- func (x *Metric) GetUint32Value() uint32
- func (x *Metric) GetUint64Value() uint64
- func (m *Metric) GetValue() isMetric_Value
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) String() string
- type MetricType
- type Metric_BytesValue
- type Metric_DoubleValue
- type Metric_Int32Value
- type Metric_Int64Value
- type Metric_StringValue
- type Metric_Uint32Value
- type Metric_Uint64Value
- type Metrics
- func (*Metrics) Descriptor() ([]byte, []int)deprecated
- func (x *Metrics) GetHeader() *Metadata
- func (x *Metrics) GetMetrics() []*Metric
- func (x *Metrics) GetName() string
- func (x *Metrics) GetType() int32
- func (*Metrics) ProtoMessage()
- func (x *Metrics) ProtoReflect() protoreflect.Message
- func (x *Metrics) Reset()
- func (x *Metrics) String() string
- type MetricsType
- type ObjectRequest
- func (x *ObjectRequest) AppendAddress(entities ...interface{}) *ObjectRequest
- func (*ObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectRequest) GetAddress(domains ...*Domain) *Address
- func (x *ObjectRequest) GetAddresses() *AddressMap
- func (x *ObjectRequest) GetJsonPaths() []string
- func (x *ObjectRequest) GetRequestDomain() *Domain
- func (x *ObjectRequest) GetResultDomain() *Domain
- func (*ObjectRequest) ProtoMessage()
- func (x *ObjectRequest) ProtoReflect() protoreflect.Message
- func (x *ObjectRequest) Reset()
- func (x *ObjectRequest) SetAddress(entities ...interface{}) *ObjectRequest
- func (x *ObjectRequest) SetRequestDomain(domain *Domain) *ObjectRequest
- func (x *ObjectRequest) SetResultDomain(domain *Domain) *ObjectRequest
- func (x *ObjectRequest) String() string
- type ObjectStatus
- func (*ObjectStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectStatus) Ensure() *ObjectStatus
- func (x *ObjectStatus) GetAddress() *Address
- func (x *ObjectStatus) GetDomain() *Domain
- func (x *ObjectStatus) GetStatus() *Status
- func (*ObjectStatus) ProtoMessage()
- func (x *ObjectStatus) ProtoReflect() protoreflect.Message
- func (x *ObjectStatus) Reset()
- func (x *ObjectStatus) SetAddress(address *Address) *ObjectStatus
- func (x *ObjectStatus) SetDomain(domain *Domain) *ObjectStatus
- func (x *ObjectStatus) SetStatus(status *Status) *ObjectStatus
- func (x *ObjectStatus) String() string
- type ObjectsList
- func (x *ObjectsList) AddFile(files ...*File) *ObjectsList
- func (x *ObjectsList) AddObjectStatus(statuses ...*ObjectStatus) *ObjectsList
- func (x *ObjectsList) AddReport(reports ...*Report) *ObjectsList
- func (x *ObjectsList) AddStatus(statuses ...*Status) *ObjectsList
- func (x *ObjectsList) AddTask(tasks ...*Task) *ObjectsList
- func (*ObjectsList) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectsList) GetFiles() []*File
- func (x *ObjectsList) GetObjectStatuses() []*ObjectStatus
- func (x *ObjectsList) GetReports() []*Report
- func (x *ObjectsList) GetStatus() *Status
- func (x *ObjectsList) GetStatuses() []*Status
- func (x *ObjectsList) GetTasks() []*Task
- func (x *ObjectsList) LenFiles() int
- func (x *ObjectsList) LenObjectStatuses() int
- func (x *ObjectsList) LenReports() int
- func (x *ObjectsList) LenStatuses() int
- func (x *ObjectsList) LenTasks() int
- func (*ObjectsList) ProtoMessage()
- func (x *ObjectsList) ProtoReflect() protoreflect.Message
- func (x *ObjectsList) Reset()
- func (x *ObjectsList) SetStatus(status *Status) *ObjectsList
- func (x *ObjectsList) String() string
- type ObjectsRequest
- func (x *ObjectsRequest) Append(request ...*ObjectRequest) *ObjectsRequest
- func (*ObjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectsRequest) GetRequestDomain() *Domain
- func (x *ObjectsRequest) GetRequests() []*ObjectRequest
- func (x *ObjectsRequest) GetRequestsNum() int
- func (x *ObjectsRequest) GetResultDomain() *Domain
- func (*ObjectsRequest) ProtoMessage()
- func (x *ObjectsRequest) ProtoReflect() protoreflect.Message
- func (x *ObjectsRequest) Reset()
- func (x *ObjectsRequest) SetRequestDomain(domain *Domain) *ObjectsRequest
- func (x *ObjectsRequest) SetResultDomain(domain *Domain) *ObjectsRequest
- func (x *ObjectsRequest) String() string
- type PresentationOptions
- func (*PresentationOptions) Descriptor() ([]byte, []int)deprecated
- func (x *PresentationOptions) GetCompression() *Compression
- func (x *PresentationOptions) GetEncoding() *Encoding
- func (x *PresentationOptions) HasCompression() bool
- func (x *PresentationOptions) HasEncoding() bool
- func (x *PresentationOptions) Log()
- func (*PresentationOptions) ProtoMessage()
- func (x *PresentationOptions) ProtoReflect() protoreflect.Message
- func (x *PresentationOptions) Reset()
- func (x *PresentationOptions) SetCompression(compression *Compression) *PresentationOptions
- func (x *PresentationOptions) SetEncoding(encoding *Encoding) *PresentationOptions
- func (x *PresentationOptions) String() string
- type Report
- func (x *Report) AddSubReport(r *Report) *Report
- func (*Report) Descriptor() ([]byte, []int)deprecated
- func (x *Report) EnsureHeader() *Metadata
- func (x *Report) GetBytes() []byte
- func (x *Report) GetChildren() []*Report
- func (x *Report) GetHeader() *Metadata
- func (x *Report) HasSubReports() bool
- func (*Report) ProtoMessage()
- func (x *Report) ProtoReflect() protoreflect.Message
- func (x *Report) Reset()
- func (x *Report) SetBytes(bytes []byte) *Report
- func (x *Report) String() string
- func (x *Report) WalkSubReports(f func(i int, subReport *Report)) *Report
- type ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseHeader) GetError() *Error
- func (x *ResponseHeader) GetProperties() *DataChunkProperties
- func (x *ResponseHeader) GetTrace() *Trace
- func (*ResponseHeader) ProtoMessage()
- func (x *ResponseHeader) ProtoReflect() protoreflect.Message
- func (x *ResponseHeader) Reset()
- type S3Address
- func (*S3Address) Descriptor() ([]byte, []int)deprecated
- func (x *S3Address) GetBucket() string
- func (x *S3Address) GetBucketNameError() error
- func (x *S3Address) GetError() error
- func (x *S3Address) GetFilename() string
- func (x *S3Address) GetObject() string
- func (x *S3Address) GetObjectNameError() error
- func (x *S3Address) IsBucketNameValid() bool
- func (x *S3Address) IsObjectNameValid() bool
- func (x *S3Address) IsValid() bool
- func (*S3Address) ProtoMessage()
- func (x *S3Address) ProtoReflect() protoreflect.Message
- func (x *S3Address) Reset()
- func (x *S3Address) SetBucket(bucket string) *S3Address
- func (x *S3Address) SetObject(object string) *S3Address
- func (x *S3Address) String() string
- type ServingStatus
- type SliceInt32
- func (x *SliceInt32) Add(a ...int32) *SliceInt32
- func (*SliceInt32) Descriptor() ([]byte, []int)deprecated
- func (x *SliceInt32) Ensure() *SliceInt32
- func (x *SliceInt32) Fetch(i int) (int32, bool)
- func (x *SliceInt32) Get(i int) int32
- func (x *SliceInt32) GetAll() []int32
- func (x *SliceInt32) GetSlice() []int32
- func (x *SliceInt32) Len() int
- func (*SliceInt32) ProtoMessage()
- func (x *SliceInt32) ProtoReflect() protoreflect.Message
- func (x *SliceInt32) Reset()
- func (x *SliceInt32) String() string
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) Ensure() *Status
- func (x *Status) Equals(status *Status) bool
- func (x *Status) GetCode() int32
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) SetCode(code int32) *Status
- func (x *Status) String() string
- type Task
- func (x *Task) AddParent(task *Task) *Task
- func (x *Task) AddParents(tasks ...*Task) *Task
- func (x *Task) AddSubject(subject *Metadata) *Task
- func (x *Task) AddSubjects(subjects ...*Metadata) *Task
- func (x *Task) AddSubtask(task *Task) *Task
- func (x *Task) AddSubtasks(tasks ...*Task) *Task
- func (x *Task) AppendResult(address *Address) *Task
- func (x *Task) CreateUuid() *Task
- func (x *Task) Derive() *Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) EnsureHeader() *Metadata
- func (x *Task) FirstParent() *Task
- func (x *Task) FirstSubject() *Metadata
- func (x *Task) FirstSubtask() *Task
- func (x *Task) GetBytes() []byte
- func (x *Task) GetChildren() []*Task
- func (x *Task) GetContextUuid() *UUID
- func (x *Task) GetContextUuidAsString() string
- func (x *Task) GetDescription() string
- func (x *Task) GetEmail() *Email
- func (x *Task) GetEmailAsString() string
- func (x *Task) GetHeader() *Metadata
- func (x *Task) GetName() string
- func (x *Task) GetParents() []*Task
- func (x *Task) GetPayload(msg proto.Message) error
- func (x *Task) GetReferenceUuid() *UUID
- func (x *Task) GetReferenceUuidAsString() string
- func (x *Task) GetResult() *Address
- func (x *Task) GetResults() []*Address
- func (x *Task) GetStatus() int32
- func (x *Task) GetSubjects() []*Metadata
- func (x *Task) GetType() int32
- func (x *Task) GetUserID() *UserID
- func (x *Task) GetUserIDAsString() string
- func (x *Task) GetUuid() *UUID
- func (x *Task) GetUuidAsString() string
- func (x *Task) LastParent() *Task
- func (x *Task) LastSubject() *Metadata
- func (x *Task) LastSubtask() *Task
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) SetBytes(bytes []byte) *Task
- func (x *Task) SetContextUuid(uuid *UUID) *Task
- func (x *Task) SetContextUuidFromString(id string) *Task
- func (x *Task) SetDescription(description string) *Task
- func (x *Task) SetEmail(address *Address) *Task
- func (x *Task) SetEmailFromString(email string) *Task
- func (x *Task) SetName(name string) *Task
- func (x *Task) SetPayload(msg proto.Message) error
- func (x *Task) SetReferenceUuid(uuid *UUID) *Task
- func (x *Task) SetReferenceUuidFromString(id string) *Task
- func (x *Task) SetResult(address *Address) *Task
- func (x *Task) SetStatus(status int32) *Task
- func (x *Task) SetType(_type int32) *Task
- func (x *Task) SetUserID(address *Address) *Task
- func (x *Task) SetUserIDFromString(id string) *Task
- func (x *Task) SetUuid(address *Address) *Task
- func (x *Task) SetUuidFromString(id string) *Task
- func (x *Task) ShiftSubtasks() *Task
- func (x *Task) String() string
- func (x *Task) UnmarshalFrom(bytes []byte) error
- type Trace
- type URL
- type UUID
- func (*UUID) Descriptor() ([]byte, []int)deprecated
- func (x *UUID) GetBytes() []byte
- func (x *UUID) GetData() []byte
- func (*UUID) ProtoMessage()
- func (x *UUID) ProtoReflect() protoreflect.Message
- func (x *UUID) Reset()
- func (x *UUID) SetBytes(bytes []byte) *UUID
- func (x *UUID) SetString(str string) *UUID
- func (x *UUID) String() string
- type UserID
- func (*UserID) Descriptor() ([]byte, []int)deprecated
- func (x *UserID) GetBytes() []byte
- func (x *UserID) GetData() []byte
- func (*UserID) ProtoMessage()
- func (x *UserID) ProtoReflect() protoreflect.Message
- func (x *UserID) Reset()
- func (x *UserID) SetBytes(bytes []byte) *UserID
- func (x *UserID) SetString(str string) *UserID
- func (x *UserID) String() string
Constants ¶
const ( // AddressReserved specifies reserved value due to first enum value has to be zero in proto3 AddressReserved int32 = 0 // AddressS3 specifies S3 and MinIO address AddressS3 int32 = 100 // AddressKafka specifies Kafka address AddressKafka int32 = 200 // AddressDigest specifies digest-based address AddressDigest int32 = 300 // AddressUUID specifies UUID-based address AddressUUID int32 = 400 // AddressUserID specifies UserID-based address. Used to specify any related user (owner, sender, etc) AddressUserID int32 = 500 // AddressDirname specifies dirname/path-based address AddressDirname int32 = 600 // AddressFilename specifies filename/filepath-based address AddressFilename int32 = 700 // AddressURL specifies URL address AddressURL int32 = 800 // AddressDomain specifies Domain address AddressDomain int32 = 900 // AddressMachineID specifies MachineID-based address AddressMachineID int32 = 1000 // AddressEmail specifies Email address AddressEmail int32 = 1100 // AddressCustom specifies Custom string AddressCustom int32 = 1200 )
AddressType represents all types of domain-specific addresses in the system
const ( CompressionTypeNone = 0 CompressionTypeLZMA = 100 )
const ( // DataChunkTypeReserved is a reserved data chunk type. Due to first enum value has to be zero in proto3. DataChunkTypeReserved int32 = 0 // DataChunkTypeUnspecified is an unspecified data chunk type. Unspecified means data chunk type is unknown. DataChunkTypeUnspecified int32 = 100 // DataChunkTypeData is a custom data Data chunk. DataChunkTypeData int32 = 200 )
const ( ModeReserved int32 = 0 ModeUnspecified int32 = 100 ModeAll int32 = 200 ModeAny int32 = 300 )
Mode represents all types of modes in the system
const ( ReportTypeReserved = 0 ReportTypeUnspecified = 100 )
const ( // Due to first enum value has to be zero in proto3 StatusCodeReserved int32 = 0 // Unspecified means we do not know its type StatusCodeUnspecified int32 = 100 // Object found StatusCodeOK int32 = 200 // Object created StatusCodeCreated int32 = 201 // Object accepted StatusCodeAccepted int32 = 202 // Not all parts/objects requested were found StatusCodePartial int32 = 206 // All objects found StatusCodeFoundAll int32 = 220 // Object is in progress of something StatusCodeInProgress int32 = 230 // Object moved to other location StatusCodeMovedPermanently int32 = 301 // Object not found StatusCodeNotFound int32 = 404 // Object not ready StatusCodeNotReady int32 = 405 // Object has failed due to internal error StatusCodeInternalError int32 = 500 // Object failed somehow StatusCodeFailed int32 = 550 )
StatusCode represents all codes of statuses
const ( // Due to first enum value has to be zero in proto3 TaskReserved int32 = 0 // Unspecified TaskUnspecified int32 = 100 // Echo request expects echo reply as an answer TaskEchoRequest int32 = 200 // Echo reply is an answer to echo request TaskEchoReply int32 = 300 // Request for configuration from the other party TaskConfigRequest int32 = 400 // Configuration TaskConfig int32 = 500 // Metrics schedule sends schedule by which metrics should be sent. TaskMetricsSchedule int32 = 600 // Metrics request is an explicit request for metrics to be sent TaskMetricsRequest int32 = 700 // One-time metrics TaskMetrics int32 = 800 // Schedule to send data TaskDataSchedule int32 = 900 // Explicit data request TaskDataRequest int32 = 1000 // Data are coming TaskData int32 = 1100 // Address is coming TaskAddress int32 = 1200 TaskExtract int32 = 1300 TaskExtractExecutables int32 = 1400 )
Variables ¶
var ( DigestType_name = map[int32]string{ 0: "DIGEST_RESERVED", 100: "DIGEST_UNSPECIFIED", 200: "DIGEST_MD5", 300: "DIGEST_SHA256", } DigestType_value = map[string]int32{ "DIGEST_RESERVED": 0, "DIGEST_UNSPECIFIED": 100, "DIGEST_MD5": 200, "DIGEST_SHA256": 300, } )
Enum value maps for DigestType.
var ( // DomainThis specifies generic domain [general purpose domain] DomainThis = NewDomain("this") // DomainSrc specifies abstract source [general purpose domain] DomainSrc = NewDomain("src") // DomainDst specifies abstract destination [general purpose domain] DomainDst = NewDomain("dst") // DomainReference specifies abstract reference [general purpose domain] DomainReference = NewDomain("reference") // DomainContext specifies abstract context [general purpose domain] DomainContext = NewDomain("context") // DomainTask specifies abstract task [general purpose domain] DomainTask = NewDomain("task") // DomainTaskResult specifies abstract task result [general purpose domain] DomainTaskResult = NewDomain("task_result") // DomainFile specifies abstract file [general purpose domain] DomainFile = NewDomain("file") // DomainStatus specifies abstract status [general purpose domain] DomainStatus = NewDomain("status") // DomainParent specifies abstract parent [general purpose domain] DomainParent = NewDomain("parent") // DomainReport specifies abstract report [general purpose domain] DomainReport = NewDomain("report") // DomainResult specifies abstract result [general purpose domain] DomainResult = NewDomain("result") // DomainInterim specifies abstract interim entities [general purpose domain] DomainInterim = NewDomain("interim") // DomainAddress specifies abstract address [general purpose domain] DomainAddress = NewDomain("address") // DomainUser specifies abstract user address [general purpose domain] DomainUser = NewDomain("user") // DomainProject specifies abstract project address [general purpose domain] DomainProject = NewDomain("project") // DomainAsset specifies abstract asset address [general purpose domain] DomainAsset = NewDomain("asset") // DomainS3 specifies S3 domain [predefined address domain] DomainS3 = NewDomain("s3") // DomainKafka specifies Kafka domain [predefined address domain] DomainKafka = NewDomain("kafka") // DomainDigest specifies digest (hash, etc.) [predefined address domain] DomainDigest = NewDomain("digest") // DomainUUID specifies UUID [predefined address domain] DomainUUID = NewDomain("uuid") // DomainUserID specifies user ID [predefined address domain] DomainUserID = NewDomain("user_id") // DomainDirname specifies name of the directory [predefined address domain] DomainDirname = NewDomain("dirname") // DomainFilename specifies file name [predefined address domain] DomainFilename = NewDomain("filename") // DomainURL specifies URL [predefined address domain] DomainURL = NewDomain("url") // DomainDomain specifies domain [predefined address domain] DomainDomain = NewDomain("domain") // DomainMachineID specifies machine ID [predefined address domain] DomainMachineID = NewDomain("machine_id") // DomainAssetID specifies asset ID [predefined address domain] DomainAssetID = NewDomain("asset_id") // DomainTaskID specifies task ID [predefined address domain] DomainTaskID = NewDomain("task_id") // DomainProjectID specifies project ID [predefined address domain] DomainProjectID = NewDomain("project_id") // DomainEmail specifies email [predefined address domain] DomainEmail = NewDomain("email") // DomainCustom specifies custom domain [predefined address domain] DomainCustom = NewDomain("custom") // Domains specifies list of all registered domains Domains = []*Domain{ DomainThis, DomainSrc, DomainDst, DomainReference, DomainContext, DomainTask, DomainTaskResult, DomainFile, DomainStatus, DomainParent, DomainReport, DomainResult, DomainInterim, DomainAddress, DomainUser, DomainProject, DomainAsset, DomainS3, DomainKafka, DomainDigest, DomainUUID, DomainUserID, DomainDirname, DomainFilename, DomainURL, DomainDomain, DomainMachineID, DomainAssetID, DomainTaskID, DomainProjectID, DomainEmail, DomainCustom, } )
var ( ServingStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "SERVING", 2: "NOT_SERVING", } ServingStatus_value = map[string]int32{ "UNKNOWN": 0, "SERVING": 1, "NOT_SERVING": 2, } )
Enum value maps for ServingStatus.
var ( MetricType_name = map[int32]string{ 0: "METRIC_TYPE_RESERVED", 100: "METRIC_TYPE_UNSPECIFIED", 200: "METRIC_TYPE_CPU", 300: "METRIC_TYPE_RAM", } MetricType_value = map[string]int32{ "METRIC_TYPE_RESERVED": 0, "METRIC_TYPE_UNSPECIFIED": 100, "METRIC_TYPE_CPU": 200, "METRIC_TYPE_RAM": 300, } )
Enum value maps for MetricType.
var ( MetricsType_name = map[int32]string{ 0: "METRICS_TYPE_RESERVED", 100: "METRICS_TYPE_UNSPECIFIED", 200: "METRICS_TYPE_RESOURCE_UTILIZATION", } MetricsType_value = map[string]int32{ "METRICS_TYPE_RESERVED": 0, "METRICS_TYPE_UNSPECIFIED": 100, "METRICS_TYPE_RESOURCE_UTILIZATION": 200, } )
Enum value maps for MetricsType.
var ( StatusReserved = NewStatus(StatusCodeReserved) StatusUnspecified = NewStatus(StatusCodeUnspecified) StatusOK = NewStatus(StatusCodeOK) StatusCreated = NewStatus(StatusCodeCreated) StatusAccepted = NewStatus(StatusCodeAccepted) StatusPartial = NewStatus(StatusCodePartial) StatusFoundAll = NewStatus(StatusCodeFoundAll) StatusInProgress = NewStatus(StatusCodeInProgress) StatusMovedPermanently = NewStatus(StatusCodeMovedPermanently) StatusNotFound = NewStatus(StatusCodeNotFound) StatusNotReady = NewStatus(StatusCodeNotReady) StatusInternalError = NewStatus(StatusCodeInternalError) StatusFailed = NewStatus(StatusCodeFailed) Statuses = []*Status{ StatusReserved, StatusUnspecified, StatusOK, StatusCreated, StatusAccepted, StatusPartial, StatusFoundAll, StatusInProgress, StatusMovedPermanently, StatusNotFound, StatusNotReady, StatusInternalError, StatusFailed, } )
var AddressTypeEnum = NewEnum()
var CompressionTypeEnum = NewEnum()
var DataChunkTypeEnum = NewEnum()
DataChunkTypeEnum is an enum of available data chunk types.
var File_api_common_address_list_proto protoreflect.FileDescriptor
var File_api_common_address_map_proto protoreflect.FileDescriptor
var File_api_common_address_proto protoreflect.FileDescriptor
var File_api_common_compression_proto protoreflect.FileDescriptor
var File_api_common_data_chunk_properties_proto protoreflect.FileDescriptor
var File_api_common_data_chunk_proto protoreflect.FileDescriptor
var File_api_common_data_packet_proto protoreflect.FileDescriptor
var File_api_common_diff_task_proto protoreflect.FileDescriptor
var File_api_common_digest_proto protoreflect.FileDescriptor
var File_api_common_dirname_proto protoreflect.FileDescriptor
var File_api_common_domain_proto protoreflect.FileDescriptor
var File_api_common_email_proto protoreflect.FileDescriptor
var File_api_common_encoding_proto protoreflect.FileDescriptor
var File_api_common_error_proto protoreflect.FileDescriptor
var File_api_common_file_proto protoreflect.FileDescriptor
var File_api_common_filename_proto protoreflect.FileDescriptor
var File_api_common_health_proto protoreflect.FileDescriptor
var File_api_common_kafka_address_proto protoreflect.FileDescriptor
var File_api_common_kafka_endpoint_proto protoreflect.FileDescriptor
var File_api_common_machine_id_proto protoreflect.FileDescriptor
var File_api_common_metadata_proto protoreflect.FileDescriptor
var File_api_common_metric_proto protoreflect.FileDescriptor
var File_api_common_metrics_proto protoreflect.FileDescriptor
var File_api_common_object_request_proto protoreflect.FileDescriptor
var File_api_common_object_status_proto protoreflect.FileDescriptor
var File_api_common_objects_list_proto protoreflect.FileDescriptor
var File_api_common_objects_request_proto protoreflect.FileDescriptor
var File_api_common_presentation_options_proto protoreflect.FileDescriptor
var File_api_common_report_proto protoreflect.FileDescriptor
var File_api_common_response_header_proto protoreflect.FileDescriptor
var File_api_common_s3_address_proto protoreflect.FileDescriptor
var File_api_common_slice_int32_proto protoreflect.FileDescriptor
var File_api_common_status_proto protoreflect.FileDescriptor
var File_api_common_task_proto protoreflect.FileDescriptor
var File_api_common_trace_proto protoreflect.FileDescriptor
var File_api_common_url_proto protoreflect.FileDescriptor
var File_api_common_user_id_proto protoreflect.FileDescriptor
var File_api_common_uuid_proto protoreflect.FileDescriptor
var ModeEnum = NewEnum()
var ReportTypeEnum = NewEnum()
var StatusCodeEnum = NewEnum()
var TaskTypeEnum = NewEnum()
Functions ¶
func MustRegisterDomain ¶
func MustRegisterDomain(domain *Domain)
MustRegisterDomain the same as RegisterDomain but with panic
func MustRegisterStatus ¶
func MustRegisterStatus(status *Status)
MustRegisterStatus the same as RegisterStatus but with panic
Types ¶
type Address ¶
type Address struct { // ExplicitDomain specifies explicitly domain, where address is specified ExplicitDomain *Domain `protobuf:"bytes,10,opt,name=explicit_domain,json=explicitDomain,proto3,oneof" json:"explicit_domain,omitempty"` // Types that are assignable to Address: // *Address_S3 // *Address_Kafka // *Address_Digest // *Address_Uuid // *Address_UserId // *Address_Dirname // *Address_Filename // *Address_Url // *Address_Domain // *Address_MachineId // *Address_Email // *Address_Custom Address isAddress_Address `protobuf_oneof:"address"` // contains filtered or unexported fields }
Address describes general address
func NewAddress ¶
func NewAddress(entities ...interface{}) *Address
NewAddress creates new Address with specified domain Call example: NewAddress(domain, address)
func NewAddressEmailFromString ¶
NewAddressEmailFromString creates new Address with specified Domain with Email fetched from string
func NewAddressFromString ¶
NewAddressFromString creates new address from string by parsing this string according to address's stringify rules.
func NewAddressUserIDFromString ¶
NewAddressUserIDFromString creates new Address with specified Domain with UUID fetched from string
func NewAddressUuidFromString ¶
NewAddressUuidFromString creates new Address with specified Domain with UUID fetched from string
func NewAddressUuidRandom ¶
func NewAddressUuidRandom(domain ...interface{}) *Address
NewAddressUuidRandom creates new Address with specified Domain with random UUID
func (*Address) Descriptor
deprecated
func (*Address) Domain ¶
Domain gets domain of an address - either explicitly specified or from the value
func (*Address) FullString ¶
FullString returns string address with domain prefix
func (*Address) GetAddress ¶
func (m *Address) GetAddress() isAddress_Address
func (*Address) GetDirname ¶
func (*Address) GetExplicitDomain ¶
func (*Address) GetFilename ¶
func (*Address) GetKafka ¶
func (x *Address) GetKafka() *KafkaAddress
func (*Address) GetMachineId ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
func (*Address) SetExplicitDomain ¶
SetExplicitDomain is a setter
type AddressList ¶
type AddressList struct { // Domain where addresses are specified. [Optional] Domain *Domain `protobuf:"bytes,100,opt,name=domain,proto3,oneof" json:"domain,omitempty"` // Addresses list. Addresses []*Address `protobuf:"bytes,200,rep,name=addresses,proto3" json:"addresses,omitempty"` // contains filtered or unexported fields }
AddressList describes list of general address
func NewAddressListFromString ¶
func NewAddressListFromString(str string) *AddressList
NewAddressListFromString creates new AddressList from string
func (*AddressList) All ¶
func (x *AddressList) All(domains ...*Domain) []*Address
All wraps GetAddresses and Select and returns all Addresses in specified domains May return nil
func (*AddressList) Append ¶
func (x *AddressList) Append(addresses ...*Address) *AddressList
Append appends addresses to the AddressList
func (*AddressList) Delete ¶
func (x *AddressList) Delete(domains ...*Domain) *AddressList
Delete deletes from the AddressList all addresses with specified domains
func (*AddressList) Descriptor
deprecated
func (*AddressList) Descriptor() ([]byte, []int)
Deprecated: Use AddressList.ProtoReflect.Descriptor instead.
func (*AddressList) Ensure ¶
func (x *AddressList) Ensure() *AddressList
Ensure returns new or existing AddressList
func (*AddressList) Exclude ¶
func (x *AddressList) Exclude(domains ...*Domain) *AddressList
Exclude selects all addresses without specified domains into new AddressList May return nil in case result is empty
func (*AddressList) First ¶
func (x *AddressList) First(domain ...*Domain) *Address
First returns the first address in the list of specified nested domain May return nil
func (*AddressList) FirstOf ¶
func (x *AddressList) FirstOf(domains ...*Domain) *Address
FirstOf gets the first address of specified domains
func (*AddressList) FullString ¶
func (x *AddressList) FullString() string
FullString stringifies address list writing addresses with domains
func (*AddressList) GetAddresses ¶
func (x *AddressList) GetAddresses() []*Address
func (*AddressList) GetDomain ¶
func (x *AddressList) GetDomain() *Domain
func (*AddressList) Has ¶
func (x *AddressList) Has(domain ...*Domain) bool
Has checks whether AddressList has something (in case do domain specified) or specified nested domain exists
func (*AddressList) HasDomain ¶
func (x *AddressList) HasDomain(domain *Domain) bool
HasDomain checks whether specified domain exists
func (*AddressList) Last ¶
func (x *AddressList) Last(domain ...*Domain) *Address
Last returns the last address in the list of specified nested domain
func (*AddressList) LastOf ¶
func (x *AddressList) LastOf(domains ...*Domain) *Address
LastOf gets the last address of specified domains
func (*AddressList) Len ¶
func (x *AddressList) Len(domain ...*Domain) int
Len returns either how many addresses of specified Domain are in the list or len of the whole AddressList in case no domain specified
func (*AddressList) LenOf ¶
func (x *AddressList) LenOf(domain *Domain) int
LenOf returns how many addresses of specified Domain are in the list
func (*AddressList) ProtoMessage ¶
func (*AddressList) ProtoMessage()
func (*AddressList) ProtoReflect ¶
func (x *AddressList) ProtoReflect() protoreflect.Message
func (*AddressList) Replace ¶
func (x *AddressList) Replace(addresses ...*Address) *AddressList
Replace replaces existing list with provided list of addresses
func (*AddressList) Reset ¶
func (x *AddressList) Reset()
func (*AddressList) Select ¶
func (x *AddressList) Select(domains ...*Domain) *AddressList
Select selects all addresses with specified domains into new AddressList. May return nil in case nothing is selected.
func (*AddressList) Slice ¶
func (x *AddressList) Slice(a, b int) []*Address
Slice returns slice of addresses May return nil
func (*AddressList) String ¶
func (x *AddressList) String() string
String stringifies address list writing addresses w/o domains
type AddressMap ¶
type AddressMap struct { // Domain where addresses are specified. [Optional] Domain *Domain `protobuf:"bytes,100,opt,name=domain,proto3,oneof" json:"domain,omitempty"` // Map contains named lists of addresses Map map[string]*AddressList `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
AddressMap describes map of address lists
func (*AddressMap) All ¶
func (m *AddressMap) All(domains ...*Domain) []*Address
All wraps AddressList.All
func (*AddressMap) Append ¶
func (m *AddressMap) Append(entities ...interface{}) *AddressMap
Append wraps AddressList.Append Call example: Append([domain,] address0, [address1,...])
func (*AddressMap) Collapse ¶
func (x *AddressMap) Collapse() *AddressList
Collapse collapses all lists from this map into one list
func (*AddressMap) Descriptor
deprecated
func (*AddressMap) Descriptor() ([]byte, []int)
Deprecated: Use AddressMap.ProtoReflect.Descriptor instead.
func (*AddressMap) Ensure ¶
func (x *AddressMap) Ensure() *AddressMap
Ensure returns new or existing AddressMap
func (*AddressMap) EnsureList ¶
func (x *AddressMap) EnsureList(domain *Domain) *AddressList
EnsureList makes sure AddressList of specified domain exists. It uses already existing domain AddressList or creates new if none found
func (*AddressMap) First ¶
func (m *AddressMap) First(domains ...*Domain) *Address
First wraps AddressList.First
func (*AddressMap) GetDomain ¶
func (x *AddressMap) GetDomain() *Domain
func (*AddressMap) GetList ¶
func (x *AddressMap) GetList(domain *Domain) *AddressList
GetList gets specified AddressList of specified domain
func (*AddressMap) GetLists ¶
func (x *AddressMap) GetLists() []*AddressList
GetLists gets all AddressList from the AddressMap
func (*AddressMap) GetMap ¶
func (x *AddressMap) GetMap() map[string]*AddressList
func (*AddressMap) Has ¶
func (m *AddressMap) Has(domains ...*Domain) bool
Has checks whether specified domain exists
func (*AddressMap) Len ¶
func (m *AddressMap) Len(domains ...*Domain) int
Len returns len of specified domain
func (*AddressMap) NewList ¶
func (x *AddressMap) NewList(domain *Domain) *AddressList
NewList creates new AddressList of specified domain. Existing one will be overwritten.
func (*AddressMap) ProtoMessage ¶
func (*AddressMap) ProtoMessage()
func (*AddressMap) ProtoReflect ¶
func (x *AddressMap) ProtoReflect() protoreflect.Message
func (*AddressMap) Replace ¶
func (m *AddressMap) Replace(entities ...interface{}) *AddressMap
Replace wraps ReplaceList and ReplaceAddresses Call example: Replace([domain0, {domain1, domain2,... nested domains to be replaced with provided addresses}] address0[, address1,...])
func (*AddressMap) ReplaceAddresses ¶
func (m *AddressMap) ReplaceAddresses(domain *Domain, deleteDomains []*Domain, addresses ...*Address) *AddressMap
ReplaceAddresses replaces specified deleteDomains within domain with provided addresses
func (*AddressMap) ReplaceList ¶
func (m *AddressMap) ReplaceList(domain *Domain, addresses ...*Address) *AddressMap
ReplaceList replaces whole AddressList with specified addresses
func (*AddressMap) Reset ¶
func (x *AddressMap) Reset()
func (*AddressMap) Set ¶
func (m *AddressMap) Set(entities ...interface{}) *AddressMap
Set wraps Replace
func (*AddressMap) SetList ¶
func (x *AddressMap) SetList(domain *Domain, list *AddressList) *AddressMap
SetList sets AddressList of specified domain. Existing one will be overwritten.
type Address_Custom ¶
type Address_Custom struct { // Custom string address. Custom string `protobuf:"bytes,1200,opt,name=custom,proto3,oneof"` }
type Address_Digest ¶
type Address_Digest struct { // Digest - based address Digest *Digest `protobuf:"bytes,300,opt,name=digest,proto3,oneof"` }
type Address_Dirname ¶
type Address_Dirname struct { // Dirname or path - based address. Dirname *Dirname `protobuf:"bytes,600,opt,name=dirname,proto3,oneof"` }
type Address_Domain ¶
type Address_Domain struct { // Domain address. Domain *Domain `protobuf:"bytes,900,opt,name=domain,proto3,oneof"` }
type Address_Email ¶
type Address_Email struct { // Email address. Email *Email `protobuf:"bytes,1100,opt,name=email,proto3,oneof"` }
type Address_Filename ¶
type Address_Filename struct { // Filename or filepath - based address. Filename *Filename `protobuf:"bytes,700,opt,name=filename,proto3,oneof"` }
type Address_Kafka ¶
type Address_Kafka struct { // Kafka address Kafka *KafkaAddress `protobuf:"bytes,200,opt,name=kafka,proto3,oneof"` }
type Address_MachineId ¶
type Address_MachineId struct { // MachineID address. MachineId *MachineID `protobuf:"bytes,1000,opt,name=machine_id,json=machineId,proto3,oneof"` }
type Address_S3 ¶
type Address_S3 struct { // S3 address S3 *S3Address `protobuf:"bytes,100,opt,name=s3,proto3,oneof"` }
type Address_Url ¶
type Address_Url struct { // Url address. Url *URL `protobuf:"bytes,800,opt,name=url,proto3,oneof"` }
type Address_UserId ¶
type Address_UserId struct { // UserID - based address. Used to specify any related user (owner, sender, etc) UserId *UserID `protobuf:"bytes,500,opt,name=user_id,json=userId,proto3,oneof"` }
type Address_Uuid ¶
type Address_Uuid struct { // UUID - based address Uuid *UUID `protobuf:"bytes,400,opt,name=uuid,proto3,oneof"` }
type Compression ¶
type Compression struct { // Type specifies type of compression Type int32 `protobuf:"varint,100,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
Compression describes compression of the object
var ( CompressionNone *Compression = nil CompressionLZMA *Compression = NewCompression(CompressionTypeLZMA) )
func (*Compression) Descriptor
deprecated
func (*Compression) Descriptor() ([]byte, []int)
Deprecated: Use Compression.ProtoReflect.Descriptor instead.
func (*Compression) Ensure ¶
func (x *Compression) Ensure(_type int32) *Compression
Ensure returns new or existing Compression
func (*Compression) GetType ¶
func (x *Compression) GetType() int32
func (*Compression) ProtoMessage ¶
func (*Compression) ProtoMessage()
func (*Compression) ProtoReflect ¶
func (x *Compression) ProtoReflect() protoreflect.Message
func (*Compression) Reset ¶
func (x *Compression) Reset()
type Compressor ¶
type Compressor struct { ReadCompression *Compression LZMAReader *lzma.Reader WriteCompression *Compression LZMAWriter *lzma.Writer }
Compressor is a compression descriptor
func NewCompressor ¶
func NewCompressor( readCompression *Compression, reader io.Reader, writeCompression *Compression, writer io.Writer, ) (*Compressor, error)
NewCompressor creates new compressor(s) for provided io.Reader and io.Writer When data are read from compressor by calling Read() of the compressor, compressor reads compressed data from `reader`, inflates it and returns as the result of its (compressor's) Read() When data are written into compressor by calling Write() of the compressor, compressor deflates data and writes compressed data into `writer`
func (*Compressor) Close ¶
func (c *Compressor) Close() error
Close is an io.Closer interface function
func (*Compressor) Read ¶
func (c *Compressor) Read(p []byte) (n int, err error)
Read is an io.Reader function
func (*Compressor) ReadEnabled ¶
func (c *Compressor) ReadEnabled() bool
ReadEnabled checks whether read is enabled
func (*Compressor) Write ¶
func (c *Compressor) Write(p []byte) (n int, err error)
Write is an io.Writer function
func (*Compressor) WriteEnabled ¶
func (c *Compressor) WriteEnabled() bool
WriteEnabled checks whether write is enabled
type DataChunk ¶
type DataChunk struct { // Data is the purpose of the whole data chunk type. // May contain any arbitrary sequence of bytes no longer than 2^32. Data []byte `protobuf:"bytes,100,opt,name=data,proto3" json:"data,omitempty"` // Properties is an optional transport-level information, describing each data chunk, // such as: len, offset, size, etc... [Optional]. Properties *DataChunkProperties `protobuf:"bytes,200,opt,name=properties,proto3,oneof" json:"properties,omitempty"` // contains filtered or unexported fields }
DataChunk represents one chunk (call it block or single piece). It is expected to be transferred as a single piece. It is expected to be a part of bigger data, transferred by smaller chunks. DataChunk can be used as a base for more complex data transfer structures, which can relay additional information, along with binary data.
func NewDataChunk ¶
func NewDataChunk() *DataChunk
func (*DataChunk) Descriptor
deprecated
func (*DataChunk) EnsureProperties ¶
func (x *DataChunk) EnsureProperties() *DataChunkProperties
EnsureProperties is a getter with guaranteed result
func (*DataChunk) GetDataLen ¶
GetDataLen is an IDataChunk interface function
func (*DataChunk) GetProperties ¶
func (x *DataChunk) GetProperties() *DataChunkProperties
func (*DataChunk) ProtoMessage ¶
func (*DataChunk) ProtoMessage()
func (*DataChunk) ProtoReflect ¶
func (x *DataChunk) ProtoReflect() protoreflect.Message
func (*DataChunk) SetProperties ¶
func (x *DataChunk) SetProperties(props *DataChunkProperties)
SetProperties is a setter
type DataChunkFile ¶
type DataChunkFile struct {
// contains filtered or unexported fields
}
DataChunkFile is a generic (abstract) file (set) of IDataChunk(s) Inspired by os.File handler and is expected to be used in the same context. Implements the following interfaces:
- io.Writer
- io.WriterTo
- io.Reader
- io.ReaderFrom
- io.Closer
and thus can be used in any functions, which operate these interfaces, such as io.Copy() It is a base for creating handlers for data files (sets, streams)
func OpenDataChunkFile ¶
func OpenDataChunkFile(transport IDataChunkTransport) (*DataChunkFile, error)
OpenDataChunkFile opens DataChunk(s) file Inspired by os.OpenFile()
func (*DataChunkFile) Close ¶
func (f *DataChunkFile) Close() error
Close implements io.Closer
io.Closer is the interface that wraps the basic Close method.
The behavior of Close after the first call is undefined. Specific implementations may document their own behavior.
func (*DataChunkFile) GetOffset ¶
func (f *DataChunkFile) GetOffset() int64
GetOffset current offset
func (*DataChunkFile) Read ¶
func (f *DataChunkFile) Read(p []byte) (n int, err error)
Read implements io.Reader
Read reads up to len(p) bytes into p. It returns the number of bytes read (0 <= n <= len(p)) and any error encountered. Even if Read returns n < len(p), it may use all of p as scratch space during the call. If some data is available but not len(p) bytes, Read conventionally returns what is available instead of waiting for more.
When Read encounters an error or end-of-file condition after successfully reading n > 0 bytes, it returns the number of bytes read. It may return the (non-nil) error from the same call or return the error (and n == 0) from a subsequent call. An instance of this general case is that a Reader returning a non-zero number of bytes at the end of the input stream may return either err == EOF or err == nil. The next Read should return 0, EOF.
Callers should always process the n > 0 bytes returned before considering the error err. Doing so correctly handles I/O errors that happen after reading some bytes and also both of the allowed EOF behaviors.
Implementations of Read are discouraged from returning a zero byte count with a nil error, except when len(p) == 0. Callers should treat a return of 0 and nil as indicating that nothing happened; in particular it does not indicate EOF.
Implementations must not retain p.
func (*DataChunkFile) ReadFrom ¶
func (f *DataChunkFile) ReadFrom(src io.Reader) (n int64, err error)
ReadFrom implements io.ReaderFrom
io.ReaderFrom is the interface that wraps the ReadFrom method.
ReadFrom reads data from src until EOF or error. The return value n is the number of bytes read. Any error except io.EOF encountered during the read is also returned.
The Copy function uses ReaderFrom if available.
func (*DataChunkFile) Write ¶
func (f *DataChunkFile) Write(p []byte) (n int, err error)
Write implements io.Writer
Write writes len(p) bytes from p to the underlying data stream. It returns the number of bytes written from p (0 <= n <= len(p)) and any error encountered that caused the write process to stop early. Write must return a non-nil error if it returns n < len(p). Write must not modify the data slice, even temporarily.
Implementations must not retain p.
func (*DataChunkFile) WriteTo ¶
func (f *DataChunkFile) WriteTo(dst io.Writer) (n int64, err error)
WriteTo implements io.WriterTo
io.WriterTo is the interface that wraps the WriteTo method.
WriteTo writes data to dst until there's no more data to write or when an error occurs. The return value n is the number of bytes written. Any error encountered during the write is also returned.
The Copy function uses WriterTo if available.
type DataChunkProperties ¶
type DataChunkProperties struct { // Digest represents digest of the object. [Optional] Digest *Digest `protobuf:"bytes,100,opt,name=digest,proto3,oneof" json:"digest,omitempty"` // Offset represents offset of the object within the stream. [Optional] Offset *int64 `protobuf:"varint,200,opt,name=offset,proto3,oneof" json:"offset,omitempty"` // Len represents length of the object. [Optional] Len *int64 `protobuf:"varint,300,opt,name=len,proto3,oneof" json:"len,omitempty"` // Total represents total length of the object. [Optional] Total *int64 `protobuf:"varint,400,opt,name=total,proto3,oneof" json:"total,omitempty"` // Last identifies last object within the stream. Optional Last *bool `protobuf:"varint,500,opt,name=last,proto3,oneof" json:"last,omitempty"` // contains filtered or unexported fields }
DataChunkProperties specifies properties of a DataChunk
func NewDataChunkProperties ¶
func NewDataChunkProperties() *DataChunkProperties
NewDataChunkProperties
func (*DataChunkProperties) Descriptor
deprecated
func (*DataChunkProperties) Descriptor() ([]byte, []int)
Deprecated: Use DataChunkProperties.ProtoReflect.Descriptor instead.
func (*DataChunkProperties) GetDigest ¶
func (x *DataChunkProperties) GetDigest() *Digest
func (*DataChunkProperties) GetLast ¶
func (x *DataChunkProperties) GetLast() bool
func (*DataChunkProperties) GetLen ¶
func (x *DataChunkProperties) GetLen() int64
func (*DataChunkProperties) GetOffset ¶
func (x *DataChunkProperties) GetOffset() int64
func (*DataChunkProperties) GetTotal ¶
func (x *DataChunkProperties) GetTotal() int64
func (*DataChunkProperties) ProtoMessage ¶
func (*DataChunkProperties) ProtoMessage()
func (*DataChunkProperties) ProtoReflect ¶
func (x *DataChunkProperties) ProtoReflect() protoreflect.Message
func (*DataChunkProperties) Reset ¶
func (x *DataChunkProperties) Reset()
func (*DataChunkProperties) SetDigest ¶
func (x *DataChunkProperties) SetDigest(digest *Digest) *DataChunkProperties
SetDigest
func (*DataChunkProperties) SetLast ¶
func (x *DataChunkProperties) SetLast(last bool) *DataChunkProperties
SetLast
func (*DataChunkProperties) SetLen ¶
func (x *DataChunkProperties) SetLen(len int64) *DataChunkProperties
SetLen
func (*DataChunkProperties) SetOffset ¶
func (x *DataChunkProperties) SetOffset(offset int64) *DataChunkProperties
SetOffset
func (*DataChunkProperties) SetTotal ¶
func (x *DataChunkProperties) SetTotal(total int64) *DataChunkProperties
SetTotal
type DataPacket ¶
type DataPacket struct { // DataChunk is the purpose of the whole packet type. DataChunk *DataChunk `protobuf:"bytes,100,opt,name=data_chunk,json=dataChunk,proto3" json:"data_chunk,omitempty"` // StreamOptions is an optional transport-level information, describing whole data chunk stream, // such as: encoding, compression, etc... [Optional]. StreamOptions *PresentationOptions `protobuf:"bytes,300,opt,name=stream_options,json=streamOptions,proto3,oneof" json:"stream_options,omitempty"` // PayloadMetadata provides additional metadata, which describes payload. [Optional]. PayloadMetadata *Metadata `protobuf:"bytes,400,opt,name=payload_metadata,json=payloadMetadata,proto3,oneof" json:"payload_metadata,omitempty"` // contains filtered or unexported fields }
DataPacket is a chunk of data transferred with additional data. Can be part of bigger data, transferred by smaller chunks. Main difference with DataChunk is that Packet has additional data.
func (*DataPacket) Descriptor
deprecated
func (*DataPacket) Descriptor() ([]byte, []int)
Deprecated: Use DataPacket.ProtoReflect.Descriptor instead.
func (*DataPacket) EnsureDataChunk ¶
func (x *DataPacket) EnsureDataChunk() *DataChunk
EnsureDataChunk is a setter with guaranteed result
func (*DataPacket) EnsureIDataChunk ¶
func (x *DataPacket) EnsureIDataChunk() IDataChunk
EnsureIDataChunk is an IDataChunkEnvelope interface function
func (*DataPacket) EnsureStreamOptions ¶
func (x *DataPacket) EnsureStreamOptions() *PresentationOptions
EnsureStreamOptions is a getter with guaranteed result
func (*DataPacket) GetData ¶
func (x *DataPacket) GetData() []byte
GetData is an IDataChunk interface function
func (*DataPacket) GetDataChunk ¶
func (x *DataPacket) GetDataChunk() *DataChunk
func (*DataPacket) GetDataLen ¶
func (x *DataPacket) GetDataLen() int
GetDataLen is an IDataChunk interface function
func (*DataPacket) GetIDataChunk ¶
func (x *DataPacket) GetIDataChunk() IDataChunk
GetIDataChunk is an IDataChunkEnvelope interface function
func (*DataPacket) GetLast ¶
func (x *DataPacket) GetLast() bool
GetLast is an IDataChunk interface function
func (*DataPacket) GetOffset ¶
func (x *DataPacket) GetOffset() int64
GetOffset is an IDataChunk interface function
func (*DataPacket) GetPayloadMetadata ¶
func (x *DataPacket) GetPayloadMetadata() *Metadata
func (*DataPacket) GetStreamOptions ¶
func (x *DataPacket) GetStreamOptions() *PresentationOptions
func (*DataPacket) ProtoMessage ¶
func (*DataPacket) ProtoMessage()
func (*DataPacket) ProtoReflect ¶
func (x *DataPacket) ProtoReflect() protoreflect.Message
func (*DataPacket) Reset ¶
func (x *DataPacket) Reset()
func (*DataPacket) SetData ¶
func (x *DataPacket) SetData(data []byte)
SetData is an IDataChunk interface function
func (*DataPacket) SetDataChunk ¶
func (x *DataPacket) SetDataChunk(chunk *DataChunk)
SetDataChunk is a setter
func (*DataPacket) SetLast ¶
func (x *DataPacket) SetLast(last bool)
SetLast is an IDataChunk interface function
func (*DataPacket) SetOffset ¶
func (x *DataPacket) SetOffset(offset int64)
SetOffset is an IDataChunk interface function
func (*DataPacket) SetPayloadMetadata ¶
func (x *DataPacket) SetPayloadMetadata(m *Metadata)
SetPayloadMetadata is a setter
func (*DataPacket) SetStreamOptions ¶
func (x *DataPacket) SetStreamOptions(o *PresentationOptions)
SetStreamOptions is a setter
type DataPacketFile ¶
type DataPacketFile struct { *DataChunkFile // contains filtered or unexported fields }
DataPacketFile is a handler to set of DataChunk(s)
func OpenDataPacketFile ¶
func OpenDataPacketFile(writer DataPacketWriter, reader DataPacketReader) (f *DataPacketFile, err error)
OpenDataPacketFile opens set of DataChunk(s) Inspired by os.OpenFile()
func (*DataPacketFile) EnsurePayloadMetadata ¶
func (f *DataPacketFile) EnsurePayloadMetadata() *Metadata
EnsurePayloadMetadata is an aux function
func (*DataPacketFile) EnsureStreamOptions ¶
func (f *DataPacketFile) EnsureStreamOptions() *PresentationOptions
EnsureStreamOptions is an aux function
func (*DataPacketFile) GetFilename ¶
func (f *DataPacketFile) GetFilename() string
GetFilename returns filename. Shortcut to get filename from metadata
func (*DataPacketFile) GetPayloadMetadata ¶
func (f *DataPacketFile) GetPayloadMetadata() *Metadata
GetPayloadMetadata is an aux function
func (*DataPacketFile) GetStreamOptions ¶
func (f *DataPacketFile) GetStreamOptions() *PresentationOptions
GetStreamOptions is an aux function
func (*DataPacketFile) Name ¶
func (f *DataPacketFile) Name() string
Name is a wrapper for GetFilename() Main purpose is to have the same Name() function as os.File does (to be used as interface function)
func (*DataPacketFile) NewIDataChunk ¶
func (f *DataPacketFile) NewIDataChunk(offsetter GetOffsetter) IDataChunk
NewIDataChunk is an IDataChunkTransport interface function and create abstracted IDataChunk
func (*DataPacketFile) Recv ¶
func (f *DataPacketFile) Recv() (IDataChunk, error)
Recv is an IDataChunkTransport interface function
func (*DataPacketFile) Send ¶
func (f *DataPacketFile) Send(iDataChunk IDataChunk) error
Send is an IDataChunkTransport interface function
func (*DataPacketFile) SetFilename ¶
func (f *DataPacketFile) SetFilename(filename string) *DataPacketFile
SetFilename sets filename. Shortcut to set filename from metadata
func (*DataPacketFile) SetPayloadMetadata ¶
func (f *DataPacketFile) SetPayloadMetadata(payload *Metadata)
SetPayloadMetadata is an aux function
func (*DataPacketFile) SetStreamOptions ¶
func (f *DataPacketFile) SetStreamOptions(opts *PresentationOptions)
SetStreamOptions is an aux function
type DataPacketFileOptions ¶
type DataPacketFileOptions struct { Header *Metadata Metadata *Metadata // Compress outgoing data Compress bool // Decompress incoming data Decompress bool }
DataPacketFileOptions describes metadata a.k.a options for data file
func NewDataPacketFileOptions ¶
func NewDataPacketFileOptions() *DataPacketFileOptions
NewDataPacketFileOptions creates new DataChunkFileOptions
func (*DataPacketFileOptions) GetCompress ¶
func (opts *DataPacketFileOptions) GetCompress() bool
GetCompress is a getter
func (*DataPacketFileOptions) GetDecompress ¶
func (opts *DataPacketFileOptions) GetDecompress() bool
GetDecompress is a getter
func (*DataPacketFileOptions) GetHeader ¶
func (opts *DataPacketFileOptions) GetHeader() *Metadata
GetHeader is a getter
func (*DataPacketFileOptions) GetMetadata ¶
func (opts *DataPacketFileOptions) GetMetadata() *Metadata
GetMetadata is a getter
func (*DataPacketFileOptions) SetCompress ¶
func (opts *DataPacketFileOptions) SetCompress(compress bool) *DataPacketFileOptions
SetCompress is a setter
func (*DataPacketFileOptions) SetDecompress ¶
func (opts *DataPacketFileOptions) SetDecompress(decompress bool) *DataPacketFileOptions
SetDecompress is a setter
func (*DataPacketFileOptions) SetHeader ¶
func (opts *DataPacketFileOptions) SetHeader(header *Metadata) *DataPacketFileOptions
SetHeader is a setter
func (*DataPacketFileOptions) SetMetadata ¶
func (opts *DataPacketFileOptions) SetMetadata(meta *Metadata) *DataPacketFileOptions
SetMetadata is a setter
type DataPacketFileWithOptions ¶
type DataPacketFileWithOptions struct { *DataPacketFile Compressor *Compressor }
DataPacketFileWithOptions Inspired by os.File handler and is expected to be used in the same context.
func OpenDataPacketFileWOptions ¶
func OpenDataPacketFileWOptions( writer DataPacketWriter, reader DataPacketReader, options *DataPacketFileOptions, ) (*DataPacketFileWithOptions, error)
OpenDataPacketFileWOptions opens file with options `writer` specifies entity where this file will write data into. Optional, in case the file is read-only `reader` specifies entity where this file will read data from. Optional, in case the file is write-only
func OpenDataPacketFileWOptionsForRead ¶
func OpenDataPacketFileWOptionsForRead( reader DataPacketReader, decompress bool, ) (*DataPacketFileWithOptions, error)
func OpenDataPacketFileWOptionsForWrite ¶
func OpenDataPacketFileWOptionsForWrite( writer DataPacketWriter, compress bool, filename ...string, ) (*DataPacketFileWithOptions, error)
func (*DataPacketFileWithOptions) Close ¶
func (f *DataPacketFileWithOptions) Close() error
Close is an io.Closer interface function
func (*DataPacketFileWithOptions) GetDataPacketFile ¶
func (f *DataPacketFileWithOptions) GetDataPacketFile() *DataPacketFile
GetDataPacketFile is a getter
func (*DataPacketFileWithOptions) Read ¶
func (f *DataPacketFileWithOptions) Read(p []byte) (n int, err error)
Read is an io.Reader interface function
func (*DataPacketFileWithOptions) ReadFrom ¶
func (f *DataPacketFileWithOptions) ReadFrom(src io.Reader) (int64, error)
ReadFrom is an io.ReaderFrom interface function
func (*DataPacketFileWithOptions) Write ¶
func (f *DataPacketFileWithOptions) Write(p []byte) (n int, err error)
Write is an io.Writer interface function
func (*DataPacketFileWithOptions) WriteTo ¶
func (f *DataPacketFileWithOptions) WriteTo(dst io.Writer) (int64, error)
WriteTo is an io.WriterTo interface function
func (*DataPacketFileWithOptions) WriteToBuf ¶
func (f *DataPacketFileWithOptions) WriteToBuf() (int64, *bytes.Buffer, error)
WriteToBuf writes data to newly created buffer
type DataPacketReader ¶
type DataPacketReader interface {
Recv() (*DataPacket, error)
}
DataPacketReader represents receiver of the data chunk stream
type DataPacketWriter ¶
type DataPacketWriter interface {
Send(*DataPacket) error
}
DataPacketWriter represents sender of the data chunk stream
type DiffTask ¶
type DiffTask struct { // "A" party for diff A *Address `protobuf:"bytes,100,opt,name=a,proto3" json:"a,omitempty"` // "B" party for diff B *Address `protobuf:"bytes,200,opt,name=b,proto3" json:"b,omitempty"` // TODO Meta *Address `protobuf:"bytes,300,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
DiffTask represents request for diff between two objects.
func (*DiffTask) Descriptor
deprecated
func (*DiffTask) ProtoMessage ¶
func (*DiffTask) ProtoMessage()
func (*DiffTask) ProtoReflect ¶
func (x *DiffTask) ProtoReflect() protoreflect.Message
type Digest ¶
type Digest struct { // Type of the digest. MD5 or SHA256 or something else Type DigestType `protobuf:"varint,100,opt,name=type,proto3,enum=api.common.DigestType" json:"type,omitempty"` // Data. Any arbitrary sequence of bytes no longer than 2^32 Data []byte `protobuf:"bytes,200,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Digest represents abstract digest.
func (*Digest) Descriptor
deprecated
func (*Digest) GetType ¶
func (x *Digest) GetType() DigestType
func (*Digest) ProtoMessage ¶
func (*Digest) ProtoMessage()
func (*Digest) ProtoReflect ¶
func (x *Digest) ProtoReflect() protoreflect.Message
func (*Digest) SetDataFromString ¶
SetDataFromString sets data from string value
func (*Digest) SetType ¶
func (x *Digest) SetType(_type DigestType) *Digest
SetType sets digest type
type DigestType ¶
type DigestType int32
DigestType represents all types of digests in the system.
const ( // Due to first enum value has to be zero in proto3 DigestType_DIGEST_RESERVED DigestType = 0 // Unspecified means we do not know its type DigestType_DIGEST_UNSPECIFIED DigestType = 100 // MD5 digest DigestType_DIGEST_MD5 DigestType = 200 // SHA256 digest DigestType_DIGEST_SHA256 DigestType = 300 )
func (DigestType) Descriptor ¶
func (DigestType) Descriptor() protoreflect.EnumDescriptor
func (DigestType) Enum ¶
func (x DigestType) Enum() *DigestType
func (DigestType) EnumDescriptor
deprecated
func (DigestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DigestType.Descriptor instead.
func (DigestType) Number ¶
func (x DigestType) Number() protoreflect.EnumNumber
func (DigestType) Type ¶
func (DigestType) Type() protoreflect.EnumType
type Dirname ¶
type Dirname struct { // Dirname specifies directory name Dirname string `protobuf:"bytes,100,opt,name=dirname,proto3" json:"dirname,omitempty"` // contains filtered or unexported fields }
Dirname represents abstract directory name.
func (*Dirname) Descriptor
deprecated
func (*Dirname) GetDirname ¶
func (*Dirname) ProtoMessage ¶
func (*Dirname) ProtoMessage()
func (*Dirname) ProtoReflect ¶
func (x *Dirname) ProtoReflect() protoreflect.Message
type Domain ¶
type Domain struct { // Domain name Name string `protobuf:"bytes,100,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Domain represents abstract domain.
func DomainFromString ¶
DomainFromString tries to find registered domain with specified string value
func FindDomain ¶
FindDomain returns registered domain with the same string value as provided
func NormalizeDomain ¶
NormalizeDomain returns either registered domain with the same string value as provided domain or provided domain.
func RegisterDomain ¶
RegisterDomain tries to register specified Domain. Domain must be non-equal to all registered domains. Returns nil in case Domain can not be registered, say it is equal to previously registered domain
func (*Domain) Descriptor
deprecated
func (*Domain) ProtoMessage ¶
func (*Domain) ProtoMessage()
func (*Domain) ProtoReflect ¶
func (x *Domain) ProtoReflect() protoreflect.Message
type Email ¶
type Email struct { // Data specifies email Data string `protobuf:"bytes,100,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Email specifies email.
func (*Email) Descriptor
deprecated
func (*Email) ProtoMessage ¶
func (*Email) ProtoMessage()
func (*Email) ProtoReflect ¶
func (x *Email) ProtoReflect() protoreflect.Message
type Encoding ¶
type Encoding struct { // Method specifies encoding method Method string `protobuf:"bytes,100,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
Encoding describes encoding of the object
func (*Encoding) Descriptor
deprecated
func (*Encoding) ProtoMessage ¶
func (*Encoding) ProtoMessage()
func (*Encoding) ProtoReflect ¶
func (x *Encoding) ProtoReflect() protoreflect.Message
type Enum ¶
type Enum struct {
// contains filtered or unexported fields
}
Enum
func (*Enum) CastRegister ¶
CastRegister
func (*Enum) MustCastRegister ¶
MustCastRegister
func (*Enum) MustGetValues ¶
MustGetValues
func (*Enum) RegisterLower ¶
RegisterLower
func (*Enum) RegisterUpper ¶
RegisterUpper
type Error ¶
type Error struct { // Code specifies error code Code int64 `protobuf:"varint,100,opt,name=code,proto3" json:"code,omitempty"` // Msg specifies error message Msg string `protobuf:"bytes,200,opt,name=msg,proto3" json:"msg,omitempty"` // Details specifies multiple error details of the error Details []*ErrorDetail `protobuf:"bytes,300,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
Error specifies general error
func (*Error) Descriptor
deprecated
func (*Error) GetDetails ¶
func (x *Error) GetDetails() []*ErrorDetail
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorDetail ¶
type ErrorDetail struct { // Name specifies error details name Name *string `protobuf:"bytes,100,opt,name=name,proto3,oneof" json:"name,omitempty"` // Text specifies error details text Text *string `protobuf:"bytes,200,opt,name=text,proto3,oneof" json:"text,omitempty"` // contains filtered or unexported fields }
ErrorDetail specifies optional error details
func (*ErrorDetail) Descriptor
deprecated
func (*ErrorDetail) Descriptor() ([]byte, []int)
Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.
func (*ErrorDetail) GetName ¶
func (x *ErrorDetail) GetName() string
func (*ErrorDetail) GetText ¶
func (x *ErrorDetail) GetText() string
func (*ErrorDetail) ProtoMessage ¶
func (*ErrorDetail) ProtoMessage()
func (*ErrorDetail) ProtoReflect ¶
func (x *ErrorDetail) ProtoReflect() protoreflect.Message
func (*ErrorDetail) Reset ¶
func (x *ErrorDetail) Reset()
type File ¶
type File struct { // Filename specifies name of a file Filename *Filename `protobuf:"bytes,100,opt,name=filename,proto3" json:"filename,omitempty"` // Data specifies data of a file Data []byte `protobuf:"bytes,200,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
File represents abstract file.
func (*File) Descriptor
deprecated
func (*File) GetFilename ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type Filename ¶
type Filename struct { // Filename specifies name of a file Filename string `protobuf:"bytes,100,opt,name=filename,proto3" json:"filename,omitempty"` // contains filtered or unexported fields }
Filename represents abstract filename.
func (*Filename) Descriptor
deprecated
func (*Filename) GetFilename ¶
func (*Filename) ProtoMessage ¶
func (*Filename) ProtoMessage()
func (*Filename) ProtoReflect ¶
func (x *Filename) ProtoReflect() protoreflect.Message
type GetOffsetter ¶
type GetOffsetter interface { // GetOffset gets current offset within the file (set) GetOffset() int64 }
type HealthCheckRequest ¶
type HealthCheckRequest struct { // Which service to check Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
HealthCheckRequest represents health check request
func (*HealthCheckRequest) Descriptor
deprecated
func (*HealthCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckRequest) GetService ¶
func (x *HealthCheckRequest) GetService() string
func (*HealthCheckRequest) ProtoMessage ¶
func (*HealthCheckRequest) ProtoMessage()
func (*HealthCheckRequest) ProtoReflect ¶
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message
func (*HealthCheckRequest) Reset ¶
func (x *HealthCheckRequest) Reset()
type HealthCheckResponse ¶
type HealthCheckResponse struct { // Whether service is serving requests Status ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=api.common.ServingStatus" json:"status,omitempty"` // contains filtered or unexported fields }
HealthCheckResponse represents response for health check request
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetStatus ¶
func (x *HealthCheckResponse) GetStatus() ServingStatus
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
type IDataChunk ¶
type IDataChunk interface { // GetDataLen gets length of the data of the DataChunk GetDataLen() int // GetData gets data of the DataChunk GetData() []byte // SetData sets data of the DataChunk SetData([]byte) // GetLast returns whether this DataChunk is the last in the file (set) GetLast() bool // SetLast sets flag whether this DataChunk is the last in the file (set) SetLast(bool) // GetOffset gets offset of the DataChunk within the file (set) GetOffset() int64 // SetOffset sets offset of the DataChunk within the file (set) SetOffset(int64) // Stringer is a nice touch to log DataChunk(s) fmt.Stringer }
IDataChunk represents DataChunk interface
type IDataChunkFile ¶
type IDataChunkFile interface { GetOffsetter io.Writer io.WriterTo io.Reader io.ReaderFrom io.Closer }
IDataChunkFile represents generic DataChunkFile which can transport IDataChunk(s)
type IDataChunkTransport ¶
type IDataChunkTransport interface { // NewIDataChunk creates new adbstracted data chunk. Typically, to be sent at the transport level by Send() NewIDataChunk(GetOffsetter) IDataChunk // Recv receives incoming abstracted IDataChunk at the transport layer. Recv() (IDataChunk, error) // Send sends IDataChunk at the transport layer. Send(IDataChunk) error }
IDataChunkTransport represents interface to transport abstracted data via IDataChunk. Interfaces transport functions to Receive, Send and create abstracted IDataChunk.
type KafkaAddress ¶
type KafkaAddress struct { // Topic within Kafka Topic string `protobuf:"bytes,100,opt,name=topic,proto3" json:"topic,omitempty"` // Partition within Kafka topic Partition int32 `protobuf:"varint,200,opt,name=partition,proto3" json:"partition,omitempty"` // contains filtered or unexported fields }
KafkaAddress represents Kafka address within Kafka endpoint (cluster).
func NewKafkaAddress ¶
func NewKafkaAddress(topic string, partition int32) *KafkaAddress
NewKafkaAddress
func (*KafkaAddress) Descriptor
deprecated
func (*KafkaAddress) Descriptor() ([]byte, []int)
Deprecated: Use KafkaAddress.ProtoReflect.Descriptor instead.
func (*KafkaAddress) GetPartition ¶
func (x *KafkaAddress) GetPartition() int32
func (*KafkaAddress) GetTopic ¶
func (x *KafkaAddress) GetTopic() string
func (*KafkaAddress) ProtoMessage ¶
func (*KafkaAddress) ProtoMessage()
func (*KafkaAddress) ProtoReflect ¶
func (x *KafkaAddress) ProtoReflect() protoreflect.Message
func (*KafkaAddress) Reset ¶
func (x *KafkaAddress) Reset()
type KafkaEndpoint ¶
type KafkaEndpoint struct { // Brokers specifies list of Kafka's cluster Brokers []string `protobuf:"bytes,100,rep,name=brokers,proto3" json:"brokers,omitempty"` // contains filtered or unexported fields }
KafkaEndpoint represents Kafka cluster access endpoint
func (*KafkaEndpoint) Descriptor
deprecated
func (*KafkaEndpoint) Descriptor() ([]byte, []int)
Deprecated: Use KafkaEndpoint.ProtoReflect.Descriptor instead.
func (*KafkaEndpoint) GetBrokers ¶
func (x *KafkaEndpoint) GetBrokers() []string
func (*KafkaEndpoint) ProtoMessage ¶
func (*KafkaEndpoint) ProtoMessage()
func (*KafkaEndpoint) ProtoReflect ¶
func (x *KafkaEndpoint) ProtoReflect() protoreflect.Message
func (*KafkaEndpoint) Reset ¶
func (x *KafkaEndpoint) Reset()
type MachineID ¶
type MachineID struct { // Data is an machine identifier data Data string `protobuf:"bytes,100,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
MachineID specifies identifier of a machine.
func (*MachineID) Descriptor
deprecated
func (*MachineID) ProtoMessage ¶
func (*MachineID) ProtoMessage()
func (*MachineID) ProtoReflect ¶
func (x *MachineID) ProtoReflect() protoreflect.Message
type Metadata ¶
type Metadata struct { // Type of the object. [Optional] // Object has to have either type or name, one of them is expected to be in place. // Object can be typed/identified either by type or by name. Type *int32 `protobuf:"varint,100,opt,name=type,proto3,oneof" json:"type,omitempty"` // Name of the object. [Optional] // Object has to have either type or name, one of the is expected to be presented. // Object can be typed/identified either by type or by name. Name *string `protobuf:"bytes,200,opt,name=name,proto3,oneof" json:"name,omitempty"` // Version of the object. [Optional] Version *int32 `protobuf:"varint,300,opt,name=version,proto3,oneof" json:"version,omitempty"` // Description represents string with human-readable description of the object. [Optional] Description *string `protobuf:"bytes,400,opt,name=description,proto3,oneof" json:"description,omitempty"` // Status represents status code of the object. [Optional] Status *int32 `protobuf:"varint,500,opt,name=status,proto3,oneof" json:"status,omitempty"` // Mode represents mode code of the object. [Optional] Mode *int32 `protobuf:"varint,600,opt,name=mode,proto3,oneof" json:"mode,omitempty"` // Ts is the timestamp of the object. [Optional] Ts *timestamppb.Timestamp `protobuf:"bytes,700,opt,name=ts,proto3,oneof" json:"ts,omitempty"` // Addresses represents map of addresses of the object. [Optional] // Internal and external or whatever may be needed. Addresses *AddressMap `protobuf:"bytes,800,opt,name=addresses,proto3,oneof" json:"addresses,omitempty"` // Properties represents properties of the data chunk, such as len, offset, etc... . [Optional] Properties *DataChunkProperties `protobuf:"bytes,900,opt,name=properties,proto3,oneof" json:"properties,omitempty"` // Multiple associated components Types *SliceInt32 `protobuf:"bytes,1000,opt,name=types,proto3,oneof" json:"types,omitempty"` Versions *SliceInt32 `protobuf:"bytes,1100,opt,name=versions,proto3,oneof" json:"versions,omitempty"` Statuses *SliceInt32 `protobuf:"bytes,1200,opt,name=statuses,proto3,oneof" json:"statuses,omitempty"` Modes *SliceInt32 `protobuf:"bytes,1300,opt,name=modes,proto3,oneof" json:"modes,omitempty"` // contains filtered or unexported fields }
Metadata describes metadata of the object
func (*Metadata) CreateTimestamp ¶
CreateTimestamp creates current timestamp
func (*Metadata) Descriptor
deprecated
func (*Metadata) EnsureProperties ¶
func (x *Metadata) EnsureProperties() *DataChunkProperties
EnsureProperties
func (*Metadata) GetAddresses ¶
func (x *Metadata) GetAddresses() *AddressMap
func (*Metadata) GetDescription ¶
func (*Metadata) GetModes ¶
func (x *Metadata) GetModes() *SliceInt32
func (*Metadata) GetProperties ¶
func (x *Metadata) GetProperties() *DataChunkProperties
func (*Metadata) GetStatuses ¶
func (x *Metadata) GetStatuses() *SliceInt32
func (*Metadata) GetTs ¶
func (x *Metadata) GetTs() *timestamppb.Timestamp
func (*Metadata) GetTypes ¶
func (x *Metadata) GetTypes() *SliceInt32
func (*Metadata) GetVersion ¶
func (*Metadata) GetVersions ¶
func (x *Metadata) GetVersions() *SliceInt32
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) SetAddresses ¶
func (x *Metadata) SetAddresses(addresses *AddressMap) *Metadata
SetAddresses
func (*Metadata) SetAssetID ¶
SetAssetID
func (*Metadata) SetContextUUID ¶
SetContextUUID
func (*Metadata) SetDescription ¶
SetDescription
func (*Metadata) SetFilename ¶
SetFilename
func (*Metadata) SetMachineID ¶
SetMachineID
func (*Metadata) SetProperties ¶
func (x *Metadata) SetProperties(properties *DataChunkProperties) *Metadata
SetProperties
func (*Metadata) SetRandomUuid ¶
SetRandomUuid domains are optional
func (*Metadata) SetResultDomain ¶
SetResultDomain
func (*Metadata) SetStatuses ¶
func (x *Metadata) SetStatuses(statuses *SliceInt32) *Metadata
SetStatuses
func (*Metadata) SetTimestamp ¶
SetTimestamp
func (*Metadata) SetVersions ¶
func (x *Metadata) SetVersions(versions *SliceInt32) *Metadata
SetVersions
type Metric ¶
type Metric struct { // Optional. Type of the metric Type *MetricType `protobuf:"varint,100,opt,name=type,proto3,enum=api.common.MetricType,oneof" json:"type,omitempty"` // Optional. Name of the metric Name *string `protobuf:"bytes,200,opt,name=name,proto3,oneof" json:"name,omitempty"` // Optional. Timestamp. Ts *timestamppb.Timestamp `protobuf:"bytes,300,opt,name=ts,proto3,oneof" json:"ts,omitempty"` // Optional. Description represents human-readable description on what it is. Description *string `protobuf:"bytes,400,opt,name=description,proto3,oneof" json:"description,omitempty"` // Value is the purpose of the whole Metric data type, // is expected to be present all the time, and can be of any type // // Types that are assignable to Value: // *Metric_StringValue // *Metric_DoubleValue // *Metric_Int32Value // *Metric_Uint32Value // *Metric_Int64Value // *Metric_Uint64Value // *Metric_BytesValue Value isMetric_Value `protobuf_oneof:"Value"` // contains filtered or unexported fields }
Metric is one metric tuple (metric identifier [optional], timestamp [optional], description [optional], metric value) Metric can be classified either by type or by name. Identifier can be omitted, in case either both sides understand what they are talking about or identifier is provided in parent's (outer) data type, such as Metric
func (*Metric) Descriptor
deprecated
func (*Metric) GetBytesValue ¶
func (*Metric) GetDescription ¶
func (*Metric) GetDoubleValue ¶
func (*Metric) GetInt32Value ¶
func (*Metric) GetInt64Value ¶
func (*Metric) GetStringValue ¶
func (*Metric) GetTs ¶
func (x *Metric) GetTs() *timestamppb.Timestamp
func (*Metric) GetType ¶
func (x *Metric) GetType() MetricType
func (*Metric) GetUint32Value ¶
func (*Metric) GetUint64Value ¶
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
type MetricType ¶
type MetricType int32
MetricType represents all metric types in the system.
const ( // Due to first enum value has to be zero in proto3 MetricType_METRIC_TYPE_RESERVED MetricType = 0 // Unspecified means we do not know its type MetricType_METRIC_TYPE_UNSPECIFIED MetricType = 100 // CPU usage metric MetricType_METRIC_TYPE_CPU MetricType = 200 // RAM usage metric MetricType_METRIC_TYPE_RAM MetricType = 300 )
func (MetricType) Descriptor ¶
func (MetricType) Descriptor() protoreflect.EnumDescriptor
func (MetricType) Enum ¶
func (x MetricType) Enum() *MetricType
func (MetricType) EnumDescriptor
deprecated
func (MetricType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetricType.Descriptor instead.
func (MetricType) Number ¶
func (x MetricType) Number() protoreflect.EnumNumber
func (MetricType) Type ¶
func (MetricType) Type() protoreflect.EnumType
type Metric_BytesValue ¶
type Metric_BytesValue struct { // OneOf. bytes value of the metric BytesValue []byte `protobuf:"bytes,560,opt,name=bytes_value,json=bytesValue,proto3,oneof"` }
type Metric_DoubleValue ¶
type Metric_DoubleValue struct { // OneOf. double value of the metric DoubleValue float64 `protobuf:"fixed64,510,opt,name=double_value,json=doubleValue,proto3,oneof"` }
type Metric_Int32Value ¶
type Metric_Int32Value struct { // OneOf. int32 value of the metric Int32Value int32 `protobuf:"varint,520,opt,name=int32_value,json=int32Value,proto3,oneof"` }
type Metric_Int64Value ¶
type Metric_Int64Value struct { // OneOf. int64 value of the metric Int64Value int64 `protobuf:"varint,540,opt,name=int64_value,json=int64Value,proto3,oneof"` }
type Metric_StringValue ¶
type Metric_StringValue struct { // OneOf. string value of the metric StringValue string `protobuf:"bytes,500,opt,name=string_value,json=stringValue,proto3,oneof"` }
type Metric_Uint32Value ¶
type Metric_Uint32Value struct { // OneOf. uint32 value of the metric Uint32Value uint32 `protobuf:"varint,530,opt,name=uint32_value,json=uint32Value,proto3,oneof"` }
type Metric_Uint64Value ¶
type Metric_Uint64Value struct { // OneOf. uint64 value of the metric Uint64Value uint64 `protobuf:"varint,550,opt,name=uint64_value,json=uint64Value,proto3,oneof"` }
type Metrics ¶
type Metrics struct { // Header represents metadata of the set of metrics Header *Metadata `protobuf:"bytes,100,opt,name=header,proto3" json:"header,omitempty"` // Optional. Type of metrics set. // Object can be typed/identified either by type or by name. Type *int32 `protobuf:"varint,200,opt,name=type,proto3,oneof" json:"type,omitempty"` // Optional. Name of metrics set. // Object can be typed/identified either by type or by name. Name *string `protobuf:"bytes,300,opt,name=name,proto3,oneof" json:"name,omitempty"` // Metrics is the purpose of the whole Metrics data type, is expected to be present at all time. Metrics []*Metric `protobuf:"bytes,400,rep,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
Metrics is a set of Metric tuples. Metric can be classified either by type or by name. MetricType can be specified once for the whole set of metrics, instead of specifying in each one of them.
func (*Metrics) Descriptor
deprecated
func (*Metrics) GetMetrics ¶
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
func (*Metrics) ProtoReflect ¶
func (x *Metrics) ProtoReflect() protoreflect.Message
type MetricsType ¶
type MetricsType int32
MetricsType represents areas of metrics accumulation - such as resource utilization, etc
const ( // Due to first enum value has to be zero in proto3 MetricsType_METRICS_TYPE_RESERVED MetricsType = 0 // Unspecified means we do not know its type MetricsType_METRICS_TYPE_UNSPECIFIED MetricsType = 100 // Resource utilization, such as CPU, RAM, etc MetricsType_METRICS_TYPE_RESOURCE_UTILIZATION MetricsType = 200 )
func (MetricsType) Descriptor ¶
func (MetricsType) Descriptor() protoreflect.EnumDescriptor
func (MetricsType) Enum ¶
func (x MetricsType) Enum() *MetricsType
func (MetricsType) EnumDescriptor
deprecated
func (MetricsType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetricsType.Descriptor instead.
func (MetricsType) Number ¶
func (x MetricsType) Number() protoreflect.EnumNumber
func (MetricsType) Type ¶
func (MetricsType) Type() protoreflect.EnumType
type ObjectRequest ¶
type ObjectRequest struct { // Request Domain - what type of entity the request is made about Ex.: atlas.DomainTask RequestDomain *Domain `protobuf:"bytes,100,opt,name=request_domain,json=requestDomain,proto3,oneof" json:"request_domain,omitempty"` // Result Domain - what type of entity is expected as a result. // Ex.: atlas.DomainReport, atlas.DomainTask, atlas.DomainStatus, atlas.DomainFile ResultDomain *Domain `protobuf:"bytes,200,opt,name=result_domain,json=resultDomain,proto3,oneof" json:"result_domain,omitempty"` // Addresses of the entity the // request is made about Addresses *AddressMap `protobuf:"bytes,300,opt,name=addresses,proto3" json:"addresses,omitempty"` // Filter(s) for this entity (applicable only in case it is a json) JsonPaths []string `protobuf:"bytes,400,rep,name=json_paths,json=jsonPaths,proto3" json:"json_paths,omitempty"` // contains filtered or unexported fields }
ObjectRequest represents request for the object(s)
func (*ObjectRequest) AppendAddress ¶
func (x *ObjectRequest) AppendAddress(entities ...interface{}) *ObjectRequest
AppendAddress is a convenience wrapper to append oen address with optional domain(s) The format is: [domain,] address, [address, ...]
func (*ObjectRequest) Descriptor
deprecated
func (*ObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ObjectRequest.ProtoReflect.Descriptor instead.
func (*ObjectRequest) GetAddress ¶
func (x *ObjectRequest) GetAddress(domains ...*Domain) *Address
GetAddress is a convenience wrapper to get one address of a specified domain
func (*ObjectRequest) GetAddresses ¶
func (x *ObjectRequest) GetAddresses() *AddressMap
func (*ObjectRequest) GetJsonPaths ¶
func (x *ObjectRequest) GetJsonPaths() []string
func (*ObjectRequest) GetRequestDomain ¶
func (x *ObjectRequest) GetRequestDomain() *Domain
func (*ObjectRequest) GetResultDomain ¶
func (x *ObjectRequest) GetResultDomain() *Domain
func (*ObjectRequest) ProtoMessage ¶
func (*ObjectRequest) ProtoMessage()
func (*ObjectRequest) ProtoReflect ¶
func (x *ObjectRequest) ProtoReflect() protoreflect.Message
func (*ObjectRequest) Reset ¶
func (x *ObjectRequest) Reset()
func (*ObjectRequest) SetAddress ¶
func (x *ObjectRequest) SetAddress(entities ...interface{}) *ObjectRequest
SetAddress is a convenience wrapper to set one address with optional domain(s) The format is: [domain,] address, [address, ...]
func (*ObjectRequest) SetRequestDomain ¶
func (x *ObjectRequest) SetRequestDomain(domain *Domain) *ObjectRequest
SetRequestDomain is a setter
func (*ObjectRequest) SetResultDomain ¶
func (x *ObjectRequest) SetResultDomain(domain *Domain) *ObjectRequest
SetResultDomain is a setter
type ObjectStatus ¶
type ObjectStatus struct { // Status represents status of an object Status *Status `protobuf:"bytes,100,opt,name=status,proto3" json:"status,omitempty"` // Domain represents domain of an object Domain *Domain `protobuf:"bytes,200,opt,name=domain,proto3,oneof" json:"domain,omitempty"` // Address represents address of an object Address *Address `protobuf:"bytes,300,opt,name=address,proto3,oneof" json:"address,omitempty"` // contains filtered or unexported fields }
ObjectStatus specifies status of an object
func (*ObjectStatus) Descriptor
deprecated
func (*ObjectStatus) Descriptor() ([]byte, []int)
Deprecated: Use ObjectStatus.ProtoReflect.Descriptor instead.
func (*ObjectStatus) Ensure ¶
func (x *ObjectStatus) Ensure() *ObjectStatus
Ensure returns new or existing Status
func (*ObjectStatus) GetAddress ¶
func (x *ObjectStatus) GetAddress() *Address
func (*ObjectStatus) GetDomain ¶
func (x *ObjectStatus) GetDomain() *Domain
func (*ObjectStatus) GetStatus ¶
func (x *ObjectStatus) GetStatus() *Status
func (*ObjectStatus) ProtoMessage ¶
func (*ObjectStatus) ProtoMessage()
func (*ObjectStatus) ProtoReflect ¶
func (x *ObjectStatus) ProtoReflect() protoreflect.Message
func (*ObjectStatus) Reset ¶
func (x *ObjectStatus) Reset()
func (*ObjectStatus) SetAddress ¶
func (x *ObjectStatus) SetAddress(address *Address) *ObjectStatus
SetAddress sets address
func (*ObjectStatus) SetDomain ¶
func (x *ObjectStatus) SetDomain(domain *Domain) *ObjectStatus
SetDomain sets address
func (*ObjectStatus) SetStatus ¶
func (x *ObjectStatus) SetStatus(status *Status) *ObjectStatus
SetStatus sets status
type ObjectsList ¶
type ObjectsList struct { // Status specifies general status of the whole list Status *Status `protobuf:"bytes,100,opt,name=status,proto3" json:"status,omitempty"` // Reports specifies reports regarding the requested objects Reports []*Report `protobuf:"bytes,500,rep,name=reports,proto3" json:"reports,omitempty"` // Tasks specifies tasks of the requested objects Tasks []*Task `protobuf:"bytes,600,rep,name=tasks,proto3" json:"tasks,omitempty"` // Statuses specifies statuses of the requested objects Statuses []*Status `protobuf:"bytes,700,rep,name=statuses,proto3" json:"statuses,omitempty"` // ObjectsStatus specifies object status ObjectStatuses []*ObjectStatus `protobuf:"bytes,800,rep,name=object_statuses,json=objectStatuses,proto3" json:"object_statuses,omitempty"` // Files specifies files of the requested objects Files []*File `protobuf:"bytes,900,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
ObjectsList specifies list of the objects
func (*ObjectsList) AddObjectStatus ¶
func (x *ObjectsList) AddObjectStatus(statuses ...*ObjectStatus) *ObjectsList
AddObjectStatus
func (*ObjectsList) AddReport ¶
func (x *ObjectsList) AddReport(reports ...*Report) *ObjectsList
AddReport
func (*ObjectsList) AddStatus ¶
func (x *ObjectsList) AddStatus(statuses ...*Status) *ObjectsList
AddStatus
func (*ObjectsList) Descriptor
deprecated
func (*ObjectsList) Descriptor() ([]byte, []int)
Deprecated: Use ObjectsList.ProtoReflect.Descriptor instead.
func (*ObjectsList) GetFiles ¶
func (x *ObjectsList) GetFiles() []*File
func (*ObjectsList) GetObjectStatuses ¶
func (x *ObjectsList) GetObjectStatuses() []*ObjectStatus
func (*ObjectsList) GetReports ¶
func (x *ObjectsList) GetReports() []*Report
func (*ObjectsList) GetStatus ¶
func (x *ObjectsList) GetStatus() *Status
func (*ObjectsList) GetStatuses ¶
func (x *ObjectsList) GetStatuses() []*Status
func (*ObjectsList) GetTasks ¶
func (x *ObjectsList) GetTasks() []*Task
func (*ObjectsList) LenObjectStatuses ¶
func (x *ObjectsList) LenObjectStatuses() int
LenObjectStatuses
func (*ObjectsList) ProtoMessage ¶
func (*ObjectsList) ProtoMessage()
func (*ObjectsList) ProtoReflect ¶
func (x *ObjectsList) ProtoReflect() protoreflect.Message
func (*ObjectsList) Reset ¶
func (x *ObjectsList) Reset()
func (*ObjectsList) SetStatus ¶
func (x *ObjectsList) SetStatus(status *Status) *ObjectsList
SetStatus
type ObjectsRequest ¶
type ObjectsRequest struct { // Request Domain - what type of entity the request is made about Ex.: atlas.DomainTask RequestDomain *Domain `protobuf:"bytes,100,opt,name=request_domain,json=requestDomain,proto3,oneof" json:"request_domain,omitempty"` // Result Domain - what type of entity is expected as a result. // Ex.: atlas.DomainReport, atlas.DomainTask, atlas.DomainStatus, atlas.DomainFile ResultDomain *Domain `protobuf:"bytes,300,opt,name=result_domain,json=resultDomain,proto3,oneof" json:"result_domain,omitempty"` // Requests specifies multiple requests about objects Requests []*ObjectRequest `protobuf:"bytes,200,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
ObjectsRequest specifies request about multiple objects
func NewObjectsRequest ¶
func NewObjectsRequest() *ObjectsRequest
NewObjectsRequest is a constructor
func (*ObjectsRequest) Append ¶
func (x *ObjectsRequest) Append(request ...*ObjectRequest) *ObjectsRequest
Append appends request(s)
func (*ObjectsRequest) Descriptor
deprecated
func (*ObjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ObjectsRequest.ProtoReflect.Descriptor instead.
func (*ObjectsRequest) GetRequestDomain ¶
func (x *ObjectsRequest) GetRequestDomain() *Domain
func (*ObjectsRequest) GetRequests ¶
func (x *ObjectsRequest) GetRequests() []*ObjectRequest
func (*ObjectsRequest) GetRequestsNum ¶
func (x *ObjectsRequest) GetRequestsNum() int
GetRequestsNum gets number of requests
func (*ObjectsRequest) GetResultDomain ¶
func (x *ObjectsRequest) GetResultDomain() *Domain
func (*ObjectsRequest) ProtoMessage ¶
func (*ObjectsRequest) ProtoMessage()
func (*ObjectsRequest) ProtoReflect ¶
func (x *ObjectsRequest) ProtoReflect() protoreflect.Message
func (*ObjectsRequest) Reset ¶
func (x *ObjectsRequest) Reset()
func (*ObjectsRequest) SetRequestDomain ¶
func (x *ObjectsRequest) SetRequestDomain(domain *Domain) *ObjectsRequest
SetRequestDomain is a setter
func (*ObjectsRequest) SetResultDomain ¶
func (x *ObjectsRequest) SetResultDomain(domain *Domain) *ObjectsRequest
SetResultDomain is a setter
type PresentationOptions ¶
type PresentationOptions struct { // Encoding represents encoding of the object. Encoding *Encoding `protobuf:"bytes,100,opt,name=encoding,proto3,oneof" json:"encoding,omitempty"` // Compression represents compression of the object. Compression *Compression `protobuf:"bytes,200,opt,name=compression,proto3,oneof" json:"compression,omitempty"` // contains filtered or unexported fields }
PresentationOptions describes presentation options of the object
func NewPresentationOptions ¶
func NewPresentationOptions() *PresentationOptions
NewPresentationOptions
func (*PresentationOptions) Descriptor
deprecated
func (*PresentationOptions) Descriptor() ([]byte, []int)
Deprecated: Use PresentationOptions.ProtoReflect.Descriptor instead.
func (*PresentationOptions) GetCompression ¶
func (x *PresentationOptions) GetCompression() *Compression
func (*PresentationOptions) GetEncoding ¶
func (x *PresentationOptions) GetEncoding() *Encoding
func (*PresentationOptions) HasCompression ¶
func (x *PresentationOptions) HasCompression() bool
HasCompression
func (*PresentationOptions) HasEncoding ¶
func (x *PresentationOptions) HasEncoding() bool
HasEncoding
func (*PresentationOptions) ProtoMessage ¶
func (*PresentationOptions) ProtoMessage()
func (*PresentationOptions) ProtoReflect ¶
func (x *PresentationOptions) ProtoReflect() protoreflect.Message
func (*PresentationOptions) Reset ¶
func (x *PresentationOptions) Reset()
func (*PresentationOptions) SetCompression ¶
func (x *PresentationOptions) SetCompression(compression *Compression) *PresentationOptions
SetCompression
func (*PresentationOptions) SetEncoding ¶
func (x *PresentationOptions) SetEncoding(encoding *Encoding) *PresentationOptions
SetEncoding
type Report ¶
type Report struct { // Header specifies report headre Header *Metadata `protobuf:"bytes,100,opt,name=header,proto3,oneof" json:"header,omitempty"` // Bytes is the purpose of the whole report type // May contain any arbitrary sequence of bytes no longer than 2^32 Bytes []byte `protobuf:"bytes,200,opt,name=bytes,proto3" json:"bytes,omitempty"` // Report may contain nested reports - parts of combined report Children []*Report `protobuf:"bytes,300,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
Report specifies one report
func (*Report) Descriptor
deprecated
func (*Report) GetChildren ¶
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) ProtoReflect ¶
func (x *Report) ProtoReflect() protoreflect.Message
type ResponseHeader ¶
type ResponseHeader struct { // Properties specifies properties of a DataChunk Properties *DataChunkProperties `protobuf:"bytes,100,opt,name=properties,proto3,oneof" json:"properties,omitempty"` // Trace specifies trace Trace *Trace `protobuf:"bytes,200,opt,name=trace,proto3,oneof" json:"trace,omitempty"` // Error specifies error Error *Error `protobuf:"bytes,400,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
ResponseHeader specifies header of a response
func (*ResponseHeader) Descriptor
deprecated
func (*ResponseHeader) Descriptor() ([]byte, []int)
Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead.
func (*ResponseHeader) GetError ¶
func (x *ResponseHeader) GetError() *Error
func (*ResponseHeader) GetProperties ¶
func (x *ResponseHeader) GetProperties() *DataChunkProperties
func (*ResponseHeader) GetTrace ¶
func (x *ResponseHeader) GetTrace() *Trace
func (*ResponseHeader) ProtoMessage ¶
func (*ResponseHeader) ProtoMessage()
func (*ResponseHeader) ProtoReflect ¶
func (x *ResponseHeader) ProtoReflect() protoreflect.Message
func (*ResponseHeader) Reset ¶
func (x *ResponseHeader) Reset()
type S3Address ¶
type S3Address struct { // Bucket name Bucket string `protobuf:"bytes,100,opt,name=bucket,proto3" json:"bucket,omitempty"` // Object name Object string `protobuf:"bytes,200,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
S3Address represents S3 and MinIO address
func NewS3Address ¶
NewS3Address creates new S3Address
func NewS3AddressFromString ¶
NewS3AddressFromString creates new S3Address from string. The first section of the string is considered to be a bucket Expected format is: bucket/path/to/the/object
func (*S3Address) Descriptor
deprecated
func (*S3Address) GetBucketNameError ¶
GetBucketNameError returns an error in case BucketName is incorrect
func (*S3Address) GetFilename ¶
GetFilename gets filename of an object
func (*S3Address) GetObjectNameError ¶
GetObjectNameError returns an error in case ObjectName is incorrect
func (*S3Address) IsBucketNameValid ¶
IsBucketNameValid checks whether bucket name is valid
func (*S3Address) IsObjectNameValid ¶
IsObjectNameValid checks whether object name is valid
func (*S3Address) ProtoMessage ¶
func (*S3Address) ProtoMessage()
func (*S3Address) ProtoReflect ¶
func (x *S3Address) ProtoReflect() protoreflect.Message
type ServingStatus ¶
type ServingStatus int32
ServingStatus represents status of the service
const ( // Unknown status ServingStatus_UNKNOWN ServingStatus = 0 // Service is serving ServingStatus_SERVING ServingStatus = 1 // Service is not serving ServingStatus_NOT_SERVING ServingStatus = 2 )
func (ServingStatus) Descriptor ¶
func (ServingStatus) Descriptor() protoreflect.EnumDescriptor
func (ServingStatus) Enum ¶
func (x ServingStatus) Enum() *ServingStatus
func (ServingStatus) EnumDescriptor
deprecated
func (ServingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServingStatus.Descriptor instead.
func (ServingStatus) Number ¶
func (x ServingStatus) Number() protoreflect.EnumNumber
func (ServingStatus) Type ¶
func (ServingStatus) Type() protoreflect.EnumType
type SliceInt32 ¶
type SliceInt32 struct { Slice []int32 `protobuf:"varint,100,rep,packed,name=slice,proto3" json:"slice,omitempty"` // contains filtered or unexported fields }
func (*SliceInt32) Descriptor
deprecated
func (*SliceInt32) Descriptor() ([]byte, []int)
Deprecated: Use SliceInt32.ProtoReflect.Descriptor instead.
func (*SliceInt32) GetSlice ¶
func (x *SliceInt32) GetSlice() []int32
func (*SliceInt32) ProtoMessage ¶
func (*SliceInt32) ProtoMessage()
func (*SliceInt32) ProtoReflect ¶
func (x *SliceInt32) ProtoReflect() protoreflect.Message
func (*SliceInt32) Reset ¶
func (x *SliceInt32) Reset()
type Status ¶
type Status struct { // Code represents code of the status Code int32 `protobuf:"varint,100,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
Status represents status of the object(s)
func FindStatus ¶
FindStatus returns registered status with the same string value as provided
func NormalizeStatus ¶
NormalizeStatus returns either registered status with the same string value as provided status or provided status.
func RegisterStatus ¶
RegisterStatus tries to register specified Status. New entity must be non-equal to all registered entities. Returns nil in case new entity can not be registered, say it is equal to previously registered entity
func StatusFromCode ¶
StatusFromCode tries to find registered status with specified code
func (*Status) Descriptor
deprecated
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type Task ¶
type Task struct { // Header of the task Header *Metadata `protobuf:"bytes,100,opt,name=header,proto3" json:"header,omitempty"` // Optional. Any arbitrary sequence of bytes no longer than 2^32 Bytes []byte `protobuf:"bytes,200,opt,name=bytes,proto3" json:"bytes,omitempty"` // Optional. Multiple task's subjects. Subjects []*Metadata `protobuf:"bytes,300,rep,name=subjects,proto3" json:"subjects,omitempty"` // Optional. Recursive chain of tasks Parents []*Task `protobuf:"bytes,400,rep,name=parents,proto3" json:"parents,omitempty"` // Optional. Recursive chain of tasks Children []*Task `protobuf:"bytes,500,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func NewTaskUnmarshalFrom ¶
NewTaskUnmarshalFrom creates new Task from a slice of bytes
func (*Task) AddParents ¶
AddParents adds multiple parents of the task
func (*Task) AddSubject ¶
AddSubject ands one subject to the task
func (*Task) AddSubjects ¶
AddSubjects adds multiple subjects to the task
func (*Task) AddSubtask ¶
AddSubtask adds one subtask to the task
func (*Task) AddSubtasks ¶
AddSubtasks adds multiple subtasks to the task
func (*Task) Derive ¶
Derive produces derivative task from the task as:
- fetches first (0-indexed) subtask from available subtasks
- and attaches all the rest subtasks (if any) as subtasks of the fetched one, which it the new top now.
Original task is modified.
func (*Task) Descriptor
deprecated
func (*Task) FirstParent ¶
FirstParent fetches first (0-indexed) parent. List of list does not change.
func (*Task) FirstSubject ¶
FirstSubject fetches first (0-indexed) subject. List of list does not change.
func (*Task) FirstSubtask ¶
FirstSubtask fetches first (0-indexed) subtask. List of subtasks does not change.
func (*Task) GetChildren ¶
func (*Task) GetContextUuidAsString ¶
GetContextUuidAsString
func (*Task) GetParents ¶
func (*Task) GetPayload ¶
GetPayload extracts profobuf message (type) from task's data. Message is unmarshalled from task's data into provided message.
func (*Task) GetReferenceUuidAsString ¶
GetReferenceUuidAsString
func (*Task) GetSubjects ¶
func (*Task) LastParent ¶
LastParent fetches last parent. List of list does not change.
func (*Task) LastSubject ¶
LastSubject fetches last subject. List of list does not change.
func (*Task) LastSubtask ¶
LastSubtask fetches last subtask. List of subtasks does not change.
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
func (*Task) SetBytes ¶
SetBytes sets bytes as task's data. Provided bytes are not interpreted and used as-is.
func (*Task) SetContextUuidFromString ¶
SetContextUuidFromString
func (*Task) SetDescription ¶
SetDescription
func (*Task) SetEmailFromString ¶
SetEmailFromString
func (*Task) SetPayload ¶
SetPayload puts any protobuf message (type) into task's data. Message is marshalled into binary form and set as data bytes of the task.
func (*Task) SetReferenceUuidFromString ¶
SetReferenceUuidFromString
func (*Task) SetUserIDFromString ¶
SetUserIDFromString
func (*Task) SetUuidFromString ¶
SetUuidFromString
func (*Task) ShiftSubtasks ¶
ShiftSubtasks fetches first (0-indexed) task from available tasks. Fetched task is removed from the list of tasks. List of subtasks changes.
func (*Task) UnmarshalFrom ¶
UnmarshalFrom unmarshal commands from a slice of bytes
type Trace ¶
type Trace struct { // TraceUid specifies UUID of the trace TraceUid *UUID `protobuf:"bytes,100,opt,name=trace_uid,json=traceUid,proto3,oneof" json:"trace_uid,omitempty"` // NodeUid specifies id the the node in the trace NodeUid *string `protobuf:"bytes,200,opt,name=node_uid,json=nodeUid,proto3,oneof" json:"node_uid,omitempty"` // contains filtered or unexported fields }
Trace represents an object trace
func (*Trace) Descriptor
deprecated
func (*Trace) GetNodeUid ¶
func (*Trace) GetTraceUid ¶
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) ProtoReflect ¶
func (x *Trace) ProtoReflect() protoreflect.Message
type URL ¶
type URL struct { // URL value Url string `protobuf:"bytes,100,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
URL represents abstract url.
func (*URL) Descriptor
deprecated
func (*URL) ProtoMessage ¶
func (*URL) ProtoMessage()
func (*URL) ProtoReflect ¶
func (x *URL) ProtoReflect() protoreflect.Message
type UUID ¶
type UUID struct { // Data specifies UUID and is any arbitrary sequence of bytes no longer than 2^32 Data []byte `protobuf:"bytes,100,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
UUID represents unique identifier.
func (*UUID) Descriptor
deprecated
func (*UUID) ProtoMessage ¶
func (*UUID) ProtoMessage()
func (*UUID) ProtoReflect ¶
func (x *UUID) ProtoReflect() protoreflect.Message
type UserID ¶
type UserID struct { // Data specifies user id and is any arbitrary sequence of bytes no longer than 2^32 Data []byte `protobuf:"bytes,100,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
UserID specifies Identifier of a user.
func (*UserID) Descriptor
deprecated
func (*UserID) ProtoMessage ¶
func (*UserID) ProtoMessage()
func (*UserID) ProtoReflect ¶
func (x *UserID) ProtoReflect() protoreflect.Message
Source Files ¶
- address.go
- address.pb.go
- address_list.go
- address_list.pb.go
- address_map.go
- address_map.jacket.go
- address_map.pb.go
- compression.go
- compression.pb.go
- compressor.go
- data_chunk.go
- data_chunk.pb.go
- data_chunk_file.go
- data_chunk_interfaces.go
- data_chunk_properties.go
- data_chunk_properties.pb.go
- data_packet.go
- data_packet.pb.go
- data_packet_file.go
- data_packet_file_options.go
- data_packet_file_with_options.go
- data_packet_file_with_options_helpers.go
- data_packet_interfaces.go
- diff_task.go
- diff_task.pb.go
- digest.go
- digest.pb.go
- dirname.go
- dirname.pb.go
- domain.go
- domain.list.go
- domain.pb.go
- email.go
- email.pb.go
- encoding.go
- encoding.pb.go
- error.pb.go
- file.go
- file.pb.go
- filename.go
- filename.pb.go
- health.pb.go
- kafka_address.go
- kafka_address.pb.go
- kafka_endpoint.go
- kafka_endpoint.pb.go
- machine_id.go
- machine_id.pb.go
- metadata.go
- metadata.jacket.go
- metadata.pb.go
- metric.go
- metric.pb.go
- metrics.go
- metrics.pb.go
- mode.go
- object_request.go
- object_request.pb.go
- object_status.go
- object_status.pb.go
- objects_list.go
- objects_list.pb.go
- objects_request.go
- objects_request.pb.go
- presentation_options.go
- presentation_options.pb.go
- report.go
- report.pb.go
- response_header.pb.go
- s3_address.go
- s3_address.pb.go
- slice_int32.go
- slice_int32.pb.go
- status.code.go
- status.go
- status.list.go
- status.pb.go
- task.go
- task.jacket.go
- task.pb.go
- trace.pb.go
- url.go
- url.pb.go
- user_id.go
- user_id.pb.go
- util_copy.go
- util_enum.go
- uuid.go
- uuid.pb.go