Documentation ¶
Index ¶
- Variables
- type ActType
- type ActionItem
- func (*ActionItem) Descriptor() ([]byte, []int)deprecated
- func (x *ActionItem) GetLink() string
- func (x *ActionItem) GetName() string
- func (x *ActionItem) GetType() ActType
- func (*ActionItem) ProtoMessage()
- func (x *ActionItem) ProtoReflect() protoreflect.Message
- func (x *ActionItem) Reset()
- func (x *ActionItem) String() string
- type ChanCode
- type ChanType
- type Channel
- func (*Channel) Descriptor() ([]byte, []int)deprecated
- func (x *Channel) GetCode() ChanCode
- func (x *Channel) GetIcon() string
- func (x *Channel) GetName() string
- func (x *Channel) GetType() ChanType
- func (*Channel) ProtoMessage()
- func (x *Channel) ProtoReflect() protoreflect.Message
- func (x *Channel) Reset()
- func (x *Channel) String() string
- type InterruptionLevel
- func (InterruptionLevel) Descriptor() protoreflect.EnumDescriptor
- func (x InterruptionLevel) Enum() *InterruptionLevel
- func (InterruptionLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x InterruptionLevel) Number() protoreflect.EnumNumber
- func (x InterruptionLevel) String() string
- func (InterruptionLevel) Type() protoreflect.EnumType
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetChannel() []byte
- func (x *Message) GetCiphertext() []byte
- func (x *Message) GetContent() []byte
- func (x *Message) GetFrom() []byte
- func (x *Message) GetInterruptionLevel() InterruptionLevel
- func (x *Message) GetPriority() int32
- func (x *Message) GetSound() *Sound
- func (x *Message) GetTokenHash() []byte
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MsgContent
- func (*MsgContent) Descriptor() ([]byte, []int)deprecated
- func (x *MsgContent) GetActions() []*ActionItem
- func (x *MsgContent) GetCopytext() string
- func (x *MsgContent) GetDuration() uint64
- func (x *MsgContent) GetFile() string
- func (x *MsgContent) GetFilename() string
- func (x *MsgContent) GetFlags() uint64
- func (x *MsgContent) GetLink() string
- func (x *MsgContent) GetSize() uint64
- func (x *MsgContent) GetText() string
- func (x *MsgContent) GetThumbnail() *Thumbnail
- func (x *MsgContent) GetTimeContent() *TimeContent
- func (x *MsgContent) GetTitle() string
- func (x *MsgContent) GetType() MsgType
- func (*MsgContent) ProtoMessage()
- func (x *MsgContent) ProtoReflect() protoreflect.Message
- func (x *MsgContent) Reset()
- func (x *MsgContent) String() string
- type MsgType
- type Sound
- type SoundType
- type Thumbnail
- func (*Thumbnail) Descriptor() ([]byte, []int)deprecated
- func (x *Thumbnail) GetData() []byte
- func (x *Thumbnail) GetHeight() int32
- func (x *Thumbnail) GetType() uint32
- func (x *Thumbnail) GetWidth() int32
- func (*Thumbnail) ProtoMessage()
- func (x *Thumbnail) ProtoReflect() protoreflect.Message
- func (x *Thumbnail) Reset()
- func (x *Thumbnail) String() string
- type TimeContent
- func (*TimeContent) Descriptor() ([]byte, []int)deprecated
- func (x *TimeContent) GetCode() string
- func (x *TimeContent) GetTimeItems() []*TimeItem
- func (x *TimeContent) GetTimestamp() uint64
- func (*TimeContent) ProtoMessage()
- func (x *TimeContent) ProtoReflect() protoreflect.Message
- func (x *TimeContent) Reset()
- func (x *TimeContent) String() string
- type TimeItem
- func (*TimeItem) Descriptor() ([]byte, []int)deprecated
- func (x *TimeItem) GetDoubleValue() float64
- func (x *TimeItem) GetIntegerValue() int64
- func (x *TimeItem) GetName() string
- func (x *TimeItem) GetValueType() ValueType
- func (*TimeItem) ProtoMessage()
- func (x *TimeItem) ProtoReflect() protoreflect.Message
- func (x *TimeItem) Reset()
- func (x *TimeItem) String() string
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetChannel() []byte
- func (x *Token) GetDataHash() []byte
- func (x *Token) GetDeviceId() []byte
- func (x *Token) GetExpires() uint64
- func (x *Token) GetNodeId() string
- func (x *Token) GetUserId() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- type ValueType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChanType_name = map[int32]string{ 0: "None", 1: "Sys", 2: "User", } ChanType_value = map[string]int32{ "None": 0, "Sys": 1, "User": 2, } )
Enum value maps for ChanType.
View Source
var ( ChanCode_name = map[int32]string{ 0: "Uncategorized", 1: "Device", 2: "TimeSets", } ChanCode_value = map[string]int32{ "Uncategorized": 0, "Device": 1, "TimeSets": 2, } )
Enum value maps for ChanCode.
View Source
var ( MsgType_name = map[int32]string{ 0: "System", 1: "Text", 2: "Image", 3: "Video", 4: "Audio", 5: "Link", 6: "File", 7: "Action", 8: "Timeline", } MsgType_value = map[string]int32{ "System": 0, "Text": 1, "Image": 2, "Video": 3, "Audio": 4, "Link": 5, "File": 6, "Action": 7, "Timeline": 8, } )
Enum value maps for MsgType.
View Source
var ( SoundType_name = map[int32]string{ 0: "NormalSound", 1: "CriticalSound", } SoundType_value = map[string]int32{ "NormalSound": 0, "CriticalSound": 1, } )
Enum value maps for SoundType.
View Source
var ( ActType_name = map[int32]string{ 0: "ActSys", 1: "ActURL", } ActType_value = map[string]int32{ "ActSys": 0, "ActURL": 1, } )
Enum value maps for ActType.
View Source
var ( ValueType_name = map[int32]string{ 0: "ValueTypeUnknown", 1: "ValueTypeInteger", 2: "ValueTypeDouble", } ValueType_value = map[string]int32{ "ValueTypeUnknown": 0, "ValueTypeInteger": 1, "ValueTypeDouble": 2, } )
Enum value maps for ValueType.
View Source
var ( InterruptionLevel_name = map[int32]string{ 0: "IlActive", -1: "IlPassive", 1: "IlTimeSensitive", } InterruptionLevel_value = map[string]int32{ "IlActive": 0, "IlPassive": -1, "IlTimeSensitive": 1, } )
Enum value maps for InterruptionLevel.
View Source
var File_pb_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ActType ¶ added in v1.1.4
type ActType int32
func (ActType) Descriptor ¶ added in v1.1.4
func (ActType) Descriptor() protoreflect.EnumDescriptor
func (ActType) EnumDescriptor
deprecated
added in
v1.1.4
func (ActType) Number ¶ added in v1.1.4
func (x ActType) Number() protoreflect.EnumNumber
func (ActType) Type ¶ added in v1.1.4
func (ActType) Type() protoreflect.EnumType
type ActionItem ¶ added in v1.1.4
type ActionItem struct { Type ActType `protobuf:"varint,1,opt,name=type,proto3,enum=net.chanify.model.ActType" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"` // contains filtered or unexported fields }
func (*ActionItem) Descriptor
deprecated
added in
v1.1.4
func (*ActionItem) Descriptor() ([]byte, []int)
Deprecated: Use ActionItem.ProtoReflect.Descriptor instead.
func (*ActionItem) GetLink ¶ added in v1.1.4
func (x *ActionItem) GetLink() string
func (*ActionItem) GetName ¶ added in v1.1.4
func (x *ActionItem) GetName() string
func (*ActionItem) GetType ¶ added in v1.1.4
func (x *ActionItem) GetType() ActType
func (*ActionItem) ProtoMessage ¶ added in v1.1.4
func (*ActionItem) ProtoMessage()
func (*ActionItem) ProtoReflect ¶ added in v1.1.4
func (x *ActionItem) ProtoReflect() protoreflect.Message
func (*ActionItem) Reset ¶ added in v1.1.4
func (x *ActionItem) Reset()
func (*ActionItem) String ¶ added in v1.1.4
func (x *ActionItem) String() string
type ChanCode ¶
type ChanCode int32
func (ChanCode) Descriptor ¶
func (ChanCode) Descriptor() protoreflect.EnumDescriptor
func (ChanCode) EnumDescriptor
deprecated
func (ChanCode) Number ¶
func (x ChanCode) Number() protoreflect.EnumNumber
func (ChanCode) Type ¶
func (ChanCode) Type() protoreflect.EnumType
type ChanType ¶
type ChanType int32
func (ChanType) Descriptor ¶
func (ChanType) Descriptor() protoreflect.EnumDescriptor
func (ChanType) EnumDescriptor
deprecated
func (ChanType) Number ¶
func (x ChanType) Number() protoreflect.EnumNumber
func (ChanType) Type ¶
func (ChanType) Type() protoreflect.EnumType
type Channel ¶
type Channel struct { Type ChanType `protobuf:"varint,1,opt,name=type,proto3,enum=net.chanify.model.ChanType" json:"type,omitempty"` Code ChanCode `protobuf:"varint,2,opt,name=code,proto3,enum=net.chanify.model.ChanCode" json:"code,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` // contains filtered or unexported fields }
func (*Channel) Descriptor
deprecated
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) ProtoReflect ¶
func (x *Channel) ProtoReflect() protoreflect.Message
type InterruptionLevel ¶ added in v1.2.9
type InterruptionLevel int32
const ( InterruptionLevel_IlActive InterruptionLevel = 0 InterruptionLevel_IlPassive InterruptionLevel = -1 InterruptionLevel_IlTimeSensitive InterruptionLevel = 1 )
func (InterruptionLevel) Descriptor ¶ added in v1.2.9
func (InterruptionLevel) Descriptor() protoreflect.EnumDescriptor
func (InterruptionLevel) Enum ¶ added in v1.2.9
func (x InterruptionLevel) Enum() *InterruptionLevel
func (InterruptionLevel) EnumDescriptor
deprecated
added in
v1.2.9
func (InterruptionLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use InterruptionLevel.Descriptor instead.
func (InterruptionLevel) Number ¶ added in v1.2.9
func (x InterruptionLevel) Number() protoreflect.EnumNumber
func (InterruptionLevel) String ¶ added in v1.2.9
func (x InterruptionLevel) String() string
func (InterruptionLevel) Type ¶ added in v1.2.9
func (InterruptionLevel) Type() protoreflect.EnumType
type Message ¶
type Message struct { From []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Channel []byte `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` // Channel Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // MsgContent Ciphertext []byte `protobuf:"bytes,4,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` // Encrypt MsgContent Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` Sound *Sound `protobuf:"bytes,6,opt,name=sound,proto3" json:"sound,omitempty"` TokenHash []byte `protobuf:"bytes,7,opt,name=token_hash,json=tokenHash,proto3" json:"token_hash,omitempty"` InterruptionLevel InterruptionLevel `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetChannel ¶
func (*Message) GetCiphertext ¶
func (*Message) GetContent ¶
func (*Message) GetInterruptionLevel ¶ added in v1.2.9
func (x *Message) GetInterruptionLevel() InterruptionLevel
func (*Message) GetPriority ¶ added in v1.0.1
func (*Message) GetTokenHash ¶ added in v1.1.7
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MsgContent ¶
type MsgContent struct { Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=net.chanify.model.MsgType" json:"type,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` File string `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Thumbnail *Thumbnail `protobuf:"bytes,5,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` Duration uint64 `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"` Size uint64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"` Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` Filename string `protobuf:"bytes,9,opt,name=filename,proto3" json:"filename,omitempty"` TimeContent *TimeContent `protobuf:"bytes,10,opt,name=time_content,json=timeContent,proto3" json:"time_content,omitempty"` // actions Flags uint64 `protobuf:"varint,15,opt,name=flags,proto3" json:"flags,omitempty"` // 1: autocopy Copytext string `protobuf:"bytes,16,opt,name=copytext,proto3" json:"copytext,omitempty"` Actions []*ActionItem `protobuf:"bytes,17,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*MsgContent) Descriptor
deprecated
func (*MsgContent) Descriptor() ([]byte, []int)
Deprecated: Use MsgContent.ProtoReflect.Descriptor instead.
func (*MsgContent) GetActions ¶ added in v1.1.4
func (x *MsgContent) GetActions() []*ActionItem
func (*MsgContent) GetCopytext ¶ added in v1.0.7
func (x *MsgContent) GetCopytext() string
func (*MsgContent) GetDuration ¶ added in v1.0.2
func (x *MsgContent) GetDuration() uint64
func (*MsgContent) GetFile ¶ added in v1.0.2
func (x *MsgContent) GetFile() string
func (*MsgContent) GetFilename ¶ added in v1.0.6
func (x *MsgContent) GetFilename() string
func (*MsgContent) GetFlags ¶ added in v1.0.8
func (x *MsgContent) GetFlags() uint64
func (*MsgContent) GetLink ¶
func (x *MsgContent) GetLink() string
func (*MsgContent) GetSize ¶ added in v1.0.5
func (x *MsgContent) GetSize() uint64
func (*MsgContent) GetText ¶
func (x *MsgContent) GetText() string
func (*MsgContent) GetThumbnail ¶ added in v1.0.4
func (x *MsgContent) GetThumbnail() *Thumbnail
func (*MsgContent) GetTimeContent ¶ added in v1.2.2
func (x *MsgContent) GetTimeContent() *TimeContent
func (*MsgContent) GetTitle ¶ added in v1.0.2
func (x *MsgContent) GetTitle() string
func (*MsgContent) GetType ¶
func (x *MsgContent) GetType() MsgType
func (*MsgContent) ProtoMessage ¶
func (*MsgContent) ProtoMessage()
func (*MsgContent) ProtoReflect ¶
func (x *MsgContent) ProtoReflect() protoreflect.Message
func (*MsgContent) Reset ¶
func (x *MsgContent) Reset()
func (*MsgContent) String ¶
func (x *MsgContent) String() string
type MsgType ¶
type MsgType int32
func (MsgType) Descriptor ¶
func (MsgType) Descriptor() protoreflect.EnumDescriptor
func (MsgType) EnumDescriptor
deprecated
func (MsgType) Number ¶
func (x MsgType) Number() protoreflect.EnumNumber
func (MsgType) Type ¶
func (MsgType) Type() protoreflect.EnumType
type Sound ¶ added in v1.0.1
type Sound struct { Type SoundType `protobuf:"varint,1,opt,name=type,proto3,enum=net.chanify.model.SoundType" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Volume float32 `protobuf:"fixed32,3,opt,name=volume,proto3" json:"volume,omitempty"` // contains filtered or unexported fields }
func (*Sound) Descriptor
deprecated
added in
v1.0.1
func (*Sound) ProtoMessage ¶ added in v1.0.1
func (*Sound) ProtoMessage()
func (*Sound) ProtoReflect ¶ added in v1.0.1
func (x *Sound) ProtoReflect() protoreflect.Message
type SoundType ¶ added in v1.0.1
type SoundType int32
func (SoundType) Descriptor ¶ added in v1.0.1
func (SoundType) Descriptor() protoreflect.EnumDescriptor
func (SoundType) EnumDescriptor
deprecated
added in
v1.0.1
func (SoundType) Number ¶ added in v1.0.1
func (x SoundType) Number() protoreflect.EnumNumber
func (SoundType) Type ¶ added in v1.0.1
func (SoundType) Type() protoreflect.EnumType
type Thumbnail ¶ added in v1.0.2
type Thumbnail struct { Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Thumbnail) Descriptor
deprecated
added in
v1.0.2
func (*Thumbnail) ProtoMessage ¶ added in v1.0.2
func (*Thumbnail) ProtoMessage()
func (*Thumbnail) ProtoReflect ¶ added in v1.0.2
func (x *Thumbnail) ProtoReflect() protoreflect.Message
type TimeContent ¶ added in v1.2.2
type TimeContent struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` TimeItems []*TimeItem `protobuf:"bytes,3,rep,name=time_items,json=timeItems,proto3" json:"time_items,omitempty"` // contains filtered or unexported fields }
func (*TimeContent) Descriptor
deprecated
added in
v1.2.2
func (*TimeContent) Descriptor() ([]byte, []int)
Deprecated: Use TimeContent.ProtoReflect.Descriptor instead.
func (*TimeContent) GetCode ¶ added in v1.2.2
func (x *TimeContent) GetCode() string
func (*TimeContent) GetTimeItems ¶ added in v1.2.2
func (x *TimeContent) GetTimeItems() []*TimeItem
func (*TimeContent) GetTimestamp ¶ added in v1.2.2
func (x *TimeContent) GetTimestamp() uint64
func (*TimeContent) ProtoMessage ¶ added in v1.2.2
func (*TimeContent) ProtoMessage()
func (*TimeContent) ProtoReflect ¶ added in v1.2.2
func (x *TimeContent) ProtoReflect() protoreflect.Message
func (*TimeContent) Reset ¶ added in v1.2.2
func (x *TimeContent) Reset()
func (*TimeContent) String ¶ added in v1.2.2
func (x *TimeContent) String() string
type TimeItem ¶ added in v1.2.2
type TimeItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ValueType ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=net.chanify.model.ValueType" json:"value_type,omitempty"` IntegerValue int64 `protobuf:"varint,3,opt,name=integer_value,json=integerValue,proto3" json:"integer_value,omitempty"` DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"` // contains filtered or unexported fields }
func (*TimeItem) Descriptor
deprecated
added in
v1.2.2
func (*TimeItem) GetDoubleValue ¶ added in v1.2.2
func (*TimeItem) GetIntegerValue ¶ added in v1.2.2
func (*TimeItem) GetValueType ¶ added in v1.2.2
func (*TimeItem) ProtoMessage ¶ added in v1.2.2
func (*TimeItem) ProtoMessage()
func (*TimeItem) ProtoReflect ¶ added in v1.2.2
func (x *TimeItem) ProtoReflect() protoreflect.Message
type Token ¶
type Token struct { Expires uint64 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` DeviceId []byte `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` Channel []byte `protobuf:"bytes,4,opt,name=channel,proto3" json:"channel,omitempty"` NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` DataHash []byte `protobuf:"bytes,6,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetChannel ¶
func (*Token) GetDataHash ¶ added in v1.0.2
func (*Token) GetDeviceId ¶
func (*Token) GetExpires ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type ValueType ¶ added in v1.2.2
type ValueType int32
func (ValueType) Descriptor ¶ added in v1.2.2
func (ValueType) Descriptor() protoreflect.EnumDescriptor
func (ValueType) EnumDescriptor
deprecated
added in
v1.2.2
func (ValueType) Number ¶ added in v1.2.2
func (x ValueType) Number() protoreflect.EnumNumber
func (ValueType) Type ¶ added in v1.2.2
func (ValueType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.