pb

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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.

Functions

This section is empty.

Types

type ActType added in v1.1.4

type ActType int32
const (
	ActType_ActSys ActType = 0
	ActType_ActURL ActType = 1
)

func (ActType) Descriptor added in v1.1.4

func (ActType) Descriptor() protoreflect.EnumDescriptor

func (ActType) Enum added in v1.1.4

func (x ActType) Enum() *ActType

func (ActType) EnumDescriptor deprecated added in v1.1.4

func (ActType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ActType.Descriptor instead.

func (ActType) Number added in v1.1.4

func (x ActType) Number() protoreflect.EnumNumber

func (ActType) String added in v1.1.4

func (x ActType) String() string

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 (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
const (
	ChanCode_Uncategorized ChanCode = 0
	ChanCode_Device        ChanCode = 1
	ChanCode_TimeSets      ChanCode = 2
)

func (ChanCode) Descriptor

func (ChanCode) Descriptor() protoreflect.EnumDescriptor

func (ChanCode) Enum

func (x ChanCode) Enum() *ChanCode

func (ChanCode) EnumDescriptor deprecated

func (ChanCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChanCode.Descriptor instead.

func (ChanCode) Number

func (x ChanCode) Number() protoreflect.EnumNumber

func (ChanCode) String

func (x ChanCode) String() string

func (ChanCode) Type

type ChanType

type ChanType int32
const (
	ChanType_None ChanType = 0
	ChanType_Sys  ChanType = 1
	ChanType_User ChanType = 2
)

func (ChanType) Descriptor

func (ChanType) Descriptor() protoreflect.EnumDescriptor

func (ChanType) Enum

func (x ChanType) Enum() *ChanType

func (ChanType) EnumDescriptor deprecated

func (ChanType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChanType.Descriptor instead.

func (ChanType) Number

func (x ChanType) Number() protoreflect.EnumNumber

func (ChanType) String

func (x ChanType) String() string

func (ChanType) Type

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

Deprecated: Use Channel.ProtoReflect.Descriptor instead.

func (*Channel) GetCode

func (x *Channel) GetCode() ChanCode

func (*Channel) GetIcon

func (x *Channel) GetIcon() string

func (*Channel) GetName

func (x *Channel) GetName() string

func (*Channel) GetType

func (x *Channel) GetType() ChanType

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) ProtoReflect

func (x *Channel) ProtoReflect() protoreflect.Message

func (*Channel) Reset

func (x *Channel) Reset()

func (*Channel) String

func (x *Channel) String() string

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) Enum added in v1.2.9

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 (InterruptionLevel) String added in v1.2.9

func (x InterruptionLevel) String() string

func (InterruptionLevel) Type added in v1.2.9

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetChannel

func (x *Message) GetChannel() []byte

func (*Message) GetCiphertext

func (x *Message) GetCiphertext() []byte

func (*Message) GetContent

func (x *Message) GetContent() []byte

func (*Message) GetFrom

func (x *Message) GetFrom() []byte

func (*Message) GetInterruptionLevel added in v1.2.9

func (x *Message) GetInterruptionLevel() InterruptionLevel

func (*Message) GetPriority added in v1.0.1

func (x *Message) GetPriority() int32

func (*Message) GetSound added in v1.0.1

func (x *Message) GetSound() *Sound

func (*Message) GetTokenHash added in v1.1.7

func (x *Message) GetTokenHash() []byte

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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 (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
const (
	MsgType_System   MsgType = 0
	MsgType_Text     MsgType = 1
	MsgType_Image    MsgType = 2
	MsgType_Video    MsgType = 3
	MsgType_Audio    MsgType = 4
	MsgType_Link     MsgType = 5
	MsgType_File     MsgType = 6
	MsgType_Action   MsgType = 7
	MsgType_Timeline MsgType = 8
)

func (MsgType) Descriptor

func (MsgType) Descriptor() protoreflect.EnumDescriptor

func (MsgType) Enum

func (x MsgType) Enum() *MsgType

func (MsgType) EnumDescriptor deprecated

func (MsgType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MsgType.Descriptor instead.

func (MsgType) Number

func (x MsgType) Number() protoreflect.EnumNumber

func (MsgType) String

func (x MsgType) String() string

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

Deprecated: Use Sound.ProtoReflect.Descriptor instead.

func (*Sound) GetName added in v1.0.1

func (x *Sound) GetName() string

func (*Sound) GetType added in v1.0.1

func (x *Sound) GetType() SoundType

func (*Sound) GetVolume added in v1.0.1

func (x *Sound) GetVolume() float32

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

func (*Sound) Reset added in v1.0.1

func (x *Sound) Reset()

func (*Sound) String added in v1.0.1

func (x *Sound) String() string

type SoundType added in v1.0.1

type SoundType int32
const (
	SoundType_NormalSound   SoundType = 0
	SoundType_CriticalSound SoundType = 1
)

func (SoundType) Descriptor added in v1.0.1

func (SoundType) Descriptor() protoreflect.EnumDescriptor

func (SoundType) Enum added in v1.0.1

func (x SoundType) Enum() *SoundType

func (SoundType) EnumDescriptor deprecated added in v1.0.1

func (SoundType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SoundType.Descriptor instead.

func (SoundType) Number added in v1.0.1

func (x SoundType) Number() protoreflect.EnumNumber

func (SoundType) String added in v1.0.1

func (x SoundType) String() string

func (SoundType) Type added in v1.0.1

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

Deprecated: Use Thumbnail.ProtoReflect.Descriptor instead.

func (*Thumbnail) GetData added in v1.0.2

func (x *Thumbnail) GetData() []byte

func (*Thumbnail) GetHeight added in v1.0.2

func (x *Thumbnail) GetHeight() int32

func (*Thumbnail) GetType added in v1.0.2

func (x *Thumbnail) GetType() uint32

func (*Thumbnail) GetWidth added in v1.0.2

func (x *Thumbnail) GetWidth() int32

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

func (*Thumbnail) Reset added in v1.0.2

func (x *Thumbnail) Reset()

func (*Thumbnail) String added in v1.0.2

func (x *Thumbnail) String() string

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

Deprecated: Use TimeItem.ProtoReflect.Descriptor instead.

func (*TimeItem) GetDoubleValue added in v1.2.2

func (x *TimeItem) GetDoubleValue() float64

func (*TimeItem) GetIntegerValue added in v1.2.2

func (x *TimeItem) GetIntegerValue() int64

func (*TimeItem) GetName added in v1.2.2

func (x *TimeItem) GetName() string

func (*TimeItem) GetValueType added in v1.2.2

func (x *TimeItem) GetValueType() ValueType

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

func (*TimeItem) Reset added in v1.2.2

func (x *TimeItem) Reset()

func (*TimeItem) String added in v1.2.2

func (x *TimeItem) String() string

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetChannel

func (x *Token) GetChannel() []byte

func (*Token) GetDataHash added in v1.0.2

func (x *Token) GetDataHash() []byte

func (*Token) GetDeviceId

func (x *Token) GetDeviceId() []byte

func (*Token) GetExpires

func (x *Token) GetExpires() uint64

func (*Token) GetNodeId

func (x *Token) GetNodeId() string

func (*Token) GetUserId

func (x *Token) GetUserId() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type ValueType added in v1.2.2

type ValueType int32
const (
	ValueType_ValueTypeUnknown ValueType = 0
	ValueType_ValueTypeInteger ValueType = 1
	ValueType_ValueTypeDouble  ValueType = 2
)

func (ValueType) Descriptor added in v1.2.2

func (ValueType) Descriptor() protoreflect.EnumDescriptor

func (ValueType) Enum added in v1.2.2

func (x ValueType) Enum() *ValueType

func (ValueType) EnumDescriptor deprecated added in v1.2.2

func (ValueType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ValueType.Descriptor instead.

func (ValueType) Number added in v1.2.2

func (x ValueType) Number() protoreflect.EnumNumber

func (ValueType) String added in v1.2.2

func (x ValueType) String() string

func (ValueType) Type added in v1.2.2

Jump to

Keyboard shortcuts

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