api

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPushService        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPushService          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPushService = fmt.Errorf("proto: unexpected end of group")
)
View Source
var PeerType_name = map[int32]string{
	0: "Private",
	1: "Group",
	2: "SIP",
}
View Source
var PeerType_value = map[string]int32{
	"Private": 0,
	"Group":   1,
	"SIP":     2,
}

Functions

func RegisterPushingServer

func RegisterPushingServer(s *grpc.Server, srv PushingServer)

Types

type AlertingPush

type AlertingPush struct {
	// Types that are valid to be assigned to AlertBody:
	//	*AlertingPush_LocAlertBody
	//	*AlertingPush_SimpleAlertBody
	AlertBody isAlertingPush_AlertBody `protobuf_oneof:"alert_body"`
	// Types that are valid to be assigned to AlertTitle:
	//	*AlertingPush_LocAlertTitle
	//	*AlertingPush_SimpleAlertTitle
	AlertTitle isAlertingPush_AlertTitle `protobuf_oneof:"alert_title"`
	Badge      int32                     `protobuf:"varint,6,opt,name=badge,proto3" json:"badge,omitempty"`
	Peer       *Peer                     `protobuf:"bytes,7,opt,name=peer,proto3" json:"peer,omitempty"`
	Mid        *types.StringValue        `protobuf:"bytes,8,opt,name=mid,proto3" json:"mid,omitempty"`
	Category   *types.StringValue        `protobuf:"bytes,9,opt,name=category,proto3" json:"category,omitempty"`
}

func (*AlertingPush) Descriptor

func (*AlertingPush) Descriptor() ([]byte, []int)

func (*AlertingPush) Equal

func (this *AlertingPush) Equal(that interface{}) bool

func (*AlertingPush) GetAlertBody

func (m *AlertingPush) GetAlertBody() isAlertingPush_AlertBody

func (*AlertingPush) GetAlertTitle

func (m *AlertingPush) GetAlertTitle() isAlertingPush_AlertTitle

func (*AlertingPush) GetBadge

func (m *AlertingPush) GetBadge() int32

func (*AlertingPush) GetCategory

func (m *AlertingPush) GetCategory() *types.StringValue

func (*AlertingPush) GetLocAlertBody

func (m *AlertingPush) GetLocAlertBody() *Localizeable

func (*AlertingPush) GetLocAlertTitle

func (m *AlertingPush) GetLocAlertTitle() *Localizeable

func (*AlertingPush) GetMid

func (m *AlertingPush) GetMid() *types.StringValue

func (*AlertingPush) GetPeer

func (m *AlertingPush) GetPeer() *Peer

func (*AlertingPush) GetSimpleAlertBody

func (m *AlertingPush) GetSimpleAlertBody() string

func (*AlertingPush) GetSimpleAlertTitle

func (m *AlertingPush) GetSimpleAlertTitle() string

func (*AlertingPush) GoString

func (this *AlertingPush) GoString() string

func (*AlertingPush) Marshal

func (m *AlertingPush) Marshal() (dAtA []byte, err error)

func (*AlertingPush) MarshalTo

func (m *AlertingPush) MarshalTo(dAtA []byte) (int, error)

func (*AlertingPush) MarshalToSizedBuffer added in v1.0.4

func (m *AlertingPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AlertingPush) ProtoMessage

func (*AlertingPush) ProtoMessage()

func (*AlertingPush) Reset

func (m *AlertingPush) Reset()

func (*AlertingPush) Size

func (m *AlertingPush) Size() (n int)

func (*AlertingPush) String

func (this *AlertingPush) String() string

func (*AlertingPush) Unmarshal

func (m *AlertingPush) Unmarshal(dAtA []byte) error

func (*AlertingPush) XXX_DiscardUnknown

func (m *AlertingPush) XXX_DiscardUnknown()

func (*AlertingPush) XXX_Marshal

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

func (*AlertingPush) XXX_Merge

func (m *AlertingPush) XXX_Merge(src proto.Message)

func (*AlertingPush) XXX_OneofWrappers added in v1.0.4

func (*AlertingPush) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*AlertingPush) XXX_Size

func (m *AlertingPush) XXX_Size() int

func (*AlertingPush) XXX_Unmarshal

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

type AlertingPush_LocAlertBody

type AlertingPush_LocAlertBody struct {
	LocAlertBody *Localizeable `protobuf:"bytes,1,opt,name=loc_alert_body,json=locAlertBody,proto3,oneof" json:"loc_alert_body,omitempty"`
}

func (*AlertingPush_LocAlertBody) Equal

func (this *AlertingPush_LocAlertBody) Equal(that interface{}) bool

func (*AlertingPush_LocAlertBody) GoString

func (this *AlertingPush_LocAlertBody) GoString() string

func (*AlertingPush_LocAlertBody) MarshalTo

func (m *AlertingPush_LocAlertBody) MarshalTo(dAtA []byte) (int, error)

func (*AlertingPush_LocAlertBody) MarshalToSizedBuffer added in v1.0.4

func (m *AlertingPush_LocAlertBody) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AlertingPush_LocAlertBody) Size

func (m *AlertingPush_LocAlertBody) Size() (n int)

func (*AlertingPush_LocAlertBody) String

func (this *AlertingPush_LocAlertBody) String() string

type AlertingPush_LocAlertTitle

type AlertingPush_LocAlertTitle struct {
	LocAlertTitle *Localizeable `protobuf:"bytes,3,opt,name=loc_alert_title,json=locAlertTitle,proto3,oneof" json:"loc_alert_title,omitempty"`
}

func (*AlertingPush_LocAlertTitle) Equal

func (this *AlertingPush_LocAlertTitle) Equal(that interface{}) bool

func (*AlertingPush_LocAlertTitle) GoString

func (this *AlertingPush_LocAlertTitle) GoString() string

func (*AlertingPush_LocAlertTitle) MarshalTo

func (m *AlertingPush_LocAlertTitle) MarshalTo(dAtA []byte) (int, error)

func (*AlertingPush_LocAlertTitle) MarshalToSizedBuffer added in v1.0.4

func (m *AlertingPush_LocAlertTitle) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AlertingPush_LocAlertTitle) Size

func (m *AlertingPush_LocAlertTitle) Size() (n int)

func (*AlertingPush_LocAlertTitle) String

func (this *AlertingPush_LocAlertTitle) String() string

type AlertingPush_SimpleAlertBody

type AlertingPush_SimpleAlertBody struct {
	SimpleAlertBody string `protobuf:"bytes,2,opt,name=simple_alert_body,json=simpleAlertBody,proto3,oneof" json:"simple_alert_body,omitempty"`
}

func (*AlertingPush_SimpleAlertBody) Equal

func (this *AlertingPush_SimpleAlertBody) Equal(that interface{}) bool

func (*AlertingPush_SimpleAlertBody) GoString

func (this *AlertingPush_SimpleAlertBody) GoString() string

func (*AlertingPush_SimpleAlertBody) MarshalTo

func (m *AlertingPush_SimpleAlertBody) MarshalTo(dAtA []byte) (int, error)

func (*AlertingPush_SimpleAlertBody) MarshalToSizedBuffer added in v1.0.4

func (m *AlertingPush_SimpleAlertBody) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AlertingPush_SimpleAlertBody) Size

func (m *AlertingPush_SimpleAlertBody) Size() (n int)

func (*AlertingPush_SimpleAlertBody) String

func (this *AlertingPush_SimpleAlertBody) String() string

type AlertingPush_SimpleAlertTitle

type AlertingPush_SimpleAlertTitle struct {
	SimpleAlertTitle string `protobuf:"bytes,4,opt,name=simple_alert_title,json=simpleAlertTitle,proto3,oneof" json:"simple_alert_title,omitempty"`
}

func (*AlertingPush_SimpleAlertTitle) Equal

func (this *AlertingPush_SimpleAlertTitle) Equal(that interface{}) bool

func (*AlertingPush_SimpleAlertTitle) GoString

func (this *AlertingPush_SimpleAlertTitle) GoString() string

func (*AlertingPush_SimpleAlertTitle) MarshalTo

func (m *AlertingPush_SimpleAlertTitle) MarshalTo(dAtA []byte) (int, error)

func (*AlertingPush_SimpleAlertTitle) MarshalToSizedBuffer added in v1.0.4

func (m *AlertingPush_SimpleAlertTitle) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AlertingPush_SimpleAlertTitle) Size

func (m *AlertingPush_SimpleAlertTitle) Size() (n int)

func (*AlertingPush_SimpleAlertTitle) String

func (this *AlertingPush_SimpleAlertTitle) String() string

type DeviceIdList

type DeviceIdList struct {
	DeviceIds []string `protobuf:"bytes,1,rep,name=device_ids,json=deviceIds,proto3" json:"device_ids,omitempty"`
}

func (*DeviceIdList) Descriptor

func (*DeviceIdList) Descriptor() ([]byte, []int)

func (*DeviceIdList) Equal

func (this *DeviceIdList) Equal(that interface{}) bool

func (*DeviceIdList) GetDeviceIds

func (m *DeviceIdList) GetDeviceIds() []string

func (*DeviceIdList) GoString

func (this *DeviceIdList) GoString() string

func (*DeviceIdList) Marshal

func (m *DeviceIdList) Marshal() (dAtA []byte, err error)

func (*DeviceIdList) MarshalTo

func (m *DeviceIdList) MarshalTo(dAtA []byte) (int, error)

func (*DeviceIdList) MarshalToSizedBuffer added in v1.0.4

func (m *DeviceIdList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeviceIdList) ProtoMessage

func (*DeviceIdList) ProtoMessage()

func (*DeviceIdList) Reset

func (m *DeviceIdList) Reset()

func (*DeviceIdList) Size

func (m *DeviceIdList) Size() (n int)

func (*DeviceIdList) String

func (this *DeviceIdList) String() string

func (*DeviceIdList) Unmarshal

func (m *DeviceIdList) Unmarshal(dAtA []byte) error

func (*DeviceIdList) XXX_DiscardUnknown

func (m *DeviceIdList) XXX_DiscardUnknown()

func (*DeviceIdList) XXX_Marshal

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

func (*DeviceIdList) XXX_Merge

func (m *DeviceIdList) XXX_Merge(src proto.Message)

func (*DeviceIdList) XXX_Size

func (m *DeviceIdList) XXX_Size() int

func (*DeviceIdList) XXX_Unmarshal

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

type EncryptedPush

type EncryptedPush struct {
	PublicAlertingPush *AlertingPush `protobuf:"bytes,1,opt,name=public_alerting_push,json=publicAlertingPush,proto3" json:"public_alerting_push,omitempty"`
	EncryptedData      []byte        `protobuf:"bytes,2,opt,name=encrypted_data,json=encryptedData,proto3" json:"encrypted_data,omitempty"`
	Nonce              int64         `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
}

func (*EncryptedPush) Descriptor

func (*EncryptedPush) Descriptor() ([]byte, []int)

func (*EncryptedPush) Equal

func (this *EncryptedPush) Equal(that interface{}) bool

func (*EncryptedPush) GetEncryptedData

func (m *EncryptedPush) GetEncryptedData() []byte

func (*EncryptedPush) GetNonce

func (m *EncryptedPush) GetNonce() int64

func (*EncryptedPush) GetPublicAlertingPush

func (m *EncryptedPush) GetPublicAlertingPush() *AlertingPush

func (*EncryptedPush) GoString

func (this *EncryptedPush) GoString() string

func (*EncryptedPush) Marshal

func (m *EncryptedPush) Marshal() (dAtA []byte, err error)

func (*EncryptedPush) MarshalTo

func (m *EncryptedPush) MarshalTo(dAtA []byte) (int, error)

func (*EncryptedPush) MarshalToSizedBuffer added in v1.0.4

func (m *EncryptedPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptedPush) ProtoMessage

func (*EncryptedPush) ProtoMessage()

func (*EncryptedPush) Reset

func (m *EncryptedPush) Reset()

func (*EncryptedPush) Size

func (m *EncryptedPush) Size() (n int)

func (*EncryptedPush) String

func (this *EncryptedPush) String() string

func (*EncryptedPush) Unmarshal

func (m *EncryptedPush) Unmarshal(dAtA []byte) error

func (*EncryptedPush) XXX_DiscardUnknown

func (m *EncryptedPush) XXX_DiscardUnknown()

func (*EncryptedPush) XXX_Marshal

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

func (*EncryptedPush) XXX_Merge

func (m *EncryptedPush) XXX_Merge(src proto.Message)

func (*EncryptedPush) XXX_Size

func (m *EncryptedPush) XXX_Size() int

func (*EncryptedPush) XXX_Unmarshal

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

type Localizeable

type Localizeable struct {
	LocKey  string   `protobuf:"bytes,1,opt,name=loc_key,json=locKey,proto3" json:"loc_key,omitempty"`
	LocArgs []string `protobuf:"bytes,2,rep,name=loc_args,json=locArgs,proto3" json:"loc_args,omitempty"`
}

func (*Localizeable) Descriptor

func (*Localizeable) Descriptor() ([]byte, []int)

func (*Localizeable) Equal

func (this *Localizeable) Equal(that interface{}) bool

func (*Localizeable) GetLocArgs

func (m *Localizeable) GetLocArgs() []string

func (*Localizeable) GetLocKey

func (m *Localizeable) GetLocKey() string

func (*Localizeable) GoString

func (this *Localizeable) GoString() string

func (*Localizeable) Marshal

func (m *Localizeable) Marshal() (dAtA []byte, err error)

func (*Localizeable) MarshalTo

func (m *Localizeable) MarshalTo(dAtA []byte) (int, error)

func (*Localizeable) MarshalToSizedBuffer added in v1.0.4

func (m *Localizeable) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Localizeable) ProtoMessage

func (*Localizeable) ProtoMessage()

func (*Localizeable) Reset

func (m *Localizeable) Reset()

func (*Localizeable) Size

func (m *Localizeable) Size() (n int)

func (*Localizeable) String

func (this *Localizeable) String() string

func (*Localizeable) Unmarshal

func (m *Localizeable) Unmarshal(dAtA []byte) error

func (*Localizeable) XXX_DiscardUnknown

func (m *Localizeable) XXX_DiscardUnknown()

func (*Localizeable) XXX_Marshal

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

func (*Localizeable) XXX_Merge

func (m *Localizeable) XXX_Merge(src proto.Message)

func (*Localizeable) XXX_Size

func (m *Localizeable) XXX_Size() int

func (*Localizeable) XXX_Unmarshal

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

type MergeCallModel added in v1.0.7

type MergeCallModel struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Merge bool   `protobuf:"varint,2,opt,name=merge,proto3" json:"merge,omitempty"`
}

Call merge rule

func (*MergeCallModel) Descriptor added in v1.0.7

func (*MergeCallModel) Descriptor() ([]byte, []int)

func (*MergeCallModel) Equal added in v1.0.7

func (this *MergeCallModel) Equal(that interface{}) bool

func (*MergeCallModel) GetKey added in v1.0.7

func (m *MergeCallModel) GetKey() string

func (*MergeCallModel) GetMerge added in v1.0.7

func (m *MergeCallModel) GetMerge() bool

func (*MergeCallModel) GoString added in v1.0.7

func (this *MergeCallModel) GoString() string

func (*MergeCallModel) Marshal added in v1.0.7

func (m *MergeCallModel) Marshal() (dAtA []byte, err error)

func (*MergeCallModel) MarshalTo added in v1.0.7

func (m *MergeCallModel) MarshalTo(dAtA []byte) (int, error)

func (*MergeCallModel) MarshalToSizedBuffer added in v1.0.7

func (m *MergeCallModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MergeCallModel) ProtoMessage added in v1.0.7

func (*MergeCallModel) ProtoMessage()

func (*MergeCallModel) Reset added in v1.0.7

func (m *MergeCallModel) Reset()

func (*MergeCallModel) Size added in v1.0.7

func (m *MergeCallModel) Size() (n int)

func (*MergeCallModel) String added in v1.0.7

func (this *MergeCallModel) String() string

func (*MergeCallModel) Unmarshal added in v1.0.7

func (m *MergeCallModel) Unmarshal(dAtA []byte) error

func (*MergeCallModel) XXX_DiscardUnknown added in v1.0.7

func (m *MergeCallModel) XXX_DiscardUnknown()

func (*MergeCallModel) XXX_Marshal added in v1.0.7

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

func (*MergeCallModel) XXX_Merge added in v1.0.7

func (m *MergeCallModel) XXX_Merge(src proto.Message)

func (*MergeCallModel) XXX_Size added in v1.0.7

func (m *MergeCallModel) XXX_Size() int

func (*MergeCallModel) XXX_Unmarshal added in v1.0.7

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

type OutPeer

type OutPeer struct {
	Type       PeerType `protobuf:"varint,1,opt,name=type,proto3,enum=main.PeerType" json:"type,omitempty"`
	Id         int32    `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	AccessHash int64    `protobuf:"varint,3,opt,name=accessHash,proto3" json:"accessHash,omitempty"`
	StrId      string   `protobuf:"bytes,4,opt,name=str_id,json=strId,proto3" json:"str_id,omitempty"`
}

func (*OutPeer) Descriptor

func (*OutPeer) Descriptor() ([]byte, []int)

func (*OutPeer) Equal

func (this *OutPeer) Equal(that interface{}) bool

func (*OutPeer) GetAccessHash

func (m *OutPeer) GetAccessHash() int64

func (*OutPeer) GetId

func (m *OutPeer) GetId() int32

func (*OutPeer) GetStrId

func (m *OutPeer) GetStrId() string

func (*OutPeer) GetType

func (m *OutPeer) GetType() PeerType

func (*OutPeer) GoString

func (this *OutPeer) GoString() string

func (*OutPeer) Marshal

func (m *OutPeer) Marshal() (dAtA []byte, err error)

func (*OutPeer) MarshalTo

func (m *OutPeer) MarshalTo(dAtA []byte) (int, error)

func (*OutPeer) MarshalToSizedBuffer added in v1.0.4

func (m *OutPeer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OutPeer) ProtoMessage

func (*OutPeer) ProtoMessage()

func (*OutPeer) Reset

func (m *OutPeer) Reset()

func (*OutPeer) Size

func (m *OutPeer) Size() (n int)

func (*OutPeer) String

func (this *OutPeer) String() string

func (*OutPeer) Unmarshal

func (m *OutPeer) Unmarshal(dAtA []byte) error

func (*OutPeer) XXX_DiscardUnknown

func (m *OutPeer) XXX_DiscardUnknown()

func (*OutPeer) XXX_Marshal

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

func (*OutPeer) XXX_Merge

func (m *OutPeer) XXX_Merge(src proto.Message)

func (*OutPeer) XXX_Size

func (m *OutPeer) XXX_Size() int

func (*OutPeer) XXX_Unmarshal

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

type Peer

type Peer struct {
	Type  PeerType `protobuf:"varint,1,opt,name=type,proto3,enum=main.PeerType" json:"type,omitempty"`
	Id    int32    `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	StrId string   `protobuf:"bytes,3,opt,name=str_id,json=strId,proto3" json:"str_id,omitempty"`
}

func (*Peer) Descriptor

func (*Peer) Descriptor() ([]byte, []int)

func (*Peer) Equal

func (this *Peer) Equal(that interface{}) bool

func (*Peer) GetId

func (m *Peer) GetId() int32

func (*Peer) GetStrId

func (m *Peer) GetStrId() string

func (*Peer) GetType

func (m *Peer) GetType() PeerType

func (*Peer) GoString

func (this *Peer) GoString() string

func (*Peer) Marshal

func (m *Peer) Marshal() (dAtA []byte, err error)

func (*Peer) MarshalTo

func (m *Peer) MarshalTo(dAtA []byte) (int, error)

func (*Peer) MarshalToSizedBuffer added in v1.0.4

func (m *Peer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) Size

func (m *Peer) Size() (n int)

func (*Peer) String

func (this *Peer) String() string

func (*Peer) Unmarshal

func (m *Peer) Unmarshal(dAtA []byte) error

func (*Peer) XXX_DiscardUnknown

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal

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

func (*Peer) XXX_Merge

func (m *Peer) XXX_Merge(src proto.Message)

func (*Peer) XXX_Size

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal

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

type PeerType

type PeerType int32
const (
	Private PeerType = 0
	Group   PeerType = 1
	SIP     PeerType = 2
)

func (PeerType) EnumDescriptor

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

func (PeerType) String

func (x PeerType) String() string

type PingRequest

type PingRequest struct {
}

func (*PingRequest) Descriptor

func (*PingRequest) Descriptor() ([]byte, []int)

func (*PingRequest) Equal

func (this *PingRequest) Equal(that interface{}) bool

func (*PingRequest) GoString

func (this *PingRequest) GoString() string

func (*PingRequest) Marshal

func (m *PingRequest) Marshal() (dAtA []byte, err error)

func (*PingRequest) MarshalTo

func (m *PingRequest) MarshalTo(dAtA []byte) (int, error)

func (*PingRequest) MarshalToSizedBuffer added in v1.0.4

func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) Size

func (m *PingRequest) Size() (n int)

func (*PingRequest) String

func (this *PingRequest) String() string

func (*PingRequest) Unmarshal

func (m *PingRequest) Unmarshal(dAtA []byte) error

func (*PingRequest) XXX_DiscardUnknown

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal

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

func (*PingRequest) XXX_Merge

func (m *PingRequest) XXX_Merge(src proto.Message)

func (*PingRequest) XXX_Size

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal

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

type PongResponse

type PongResponse struct {
}

func (*PongResponse) Descriptor

func (*PongResponse) Descriptor() ([]byte, []int)

func (*PongResponse) Equal

func (this *PongResponse) Equal(that interface{}) bool

func (*PongResponse) GoString

func (this *PongResponse) GoString() string

func (*PongResponse) Marshal

func (m *PongResponse) Marshal() (dAtA []byte, err error)

func (*PongResponse) MarshalTo

func (m *PongResponse) MarshalTo(dAtA []byte) (int, error)

func (*PongResponse) MarshalToSizedBuffer added in v1.0.4

func (m *PongResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PongResponse) ProtoMessage

func (*PongResponse) ProtoMessage()

func (*PongResponse) Reset

func (m *PongResponse) Reset()

func (*PongResponse) Size

func (m *PongResponse) Size() (n int)

func (*PongResponse) String

func (this *PongResponse) String() string

func (*PongResponse) Unmarshal

func (m *PongResponse) Unmarshal(dAtA []byte) error

func (*PongResponse) XXX_DiscardUnknown

func (m *PongResponse) XXX_DiscardUnknown()

func (*PongResponse) XXX_Marshal

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

func (*PongResponse) XXX_Merge

func (m *PongResponse) XXX_Merge(src proto.Message)

func (*PongResponse) XXX_Size

func (m *PongResponse) XXX_Size() int

func (*PongResponse) XXX_Unmarshal

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

type Push

type Push struct {
	Destinations  map[string]*DeviceIdList `` /* 165-byte string literal not displayed */
	Body          *PushBody                `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	CorrelationId string                   `protobuf:"bytes,3,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"`
}

func (*Push) Descriptor

func (*Push) Descriptor() ([]byte, []int)

func (*Push) Equal

func (this *Push) Equal(that interface{}) bool

func (*Push) GetBody

func (m *Push) GetBody() *PushBody

func (*Push) GetCorrelationId

func (m *Push) GetCorrelationId() string

func (*Push) GetDestinations

func (m *Push) GetDestinations() map[string]*DeviceIdList

func (*Push) GoString

func (this *Push) GoString() string

func (*Push) Marshal

func (m *Push) Marshal() (dAtA []byte, err error)

func (*Push) MarshalTo

func (m *Push) MarshalTo(dAtA []byte) (int, error)

func (*Push) MarshalToSizedBuffer added in v1.0.4

func (m *Push) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Push) ProtoMessage

func (*Push) ProtoMessage()

func (*Push) Reset

func (m *Push) Reset()

func (*Push) Size

func (m *Push) Size() (n int)

func (*Push) String

func (this *Push) String() string

func (*Push) Unmarshal

func (m *Push) Unmarshal(dAtA []byte) error

func (*Push) XXX_DiscardUnknown

func (m *Push) XXX_DiscardUnknown()

func (*Push) XXX_Marshal

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

func (*Push) XXX_Merge

func (m *Push) XXX_Merge(src proto.Message)

func (*Push) XXX_Size

func (m *Push) XXX_Size() int

func (*Push) XXX_Unmarshal

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

type PushBody

type PushBody struct {
	CollapseKey string `protobuf:"bytes,1,opt,name=collapse_key,json=collapseKey,proto3" json:"collapse_key,omitempty"`
	TimeToLive  int32  `protobuf:"varint,2,opt,name=time_to_live,json=timeToLive,proto3" json:"time_to_live,omitempty"`
	Seq         int32  `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
	// Types that are valid to be assigned to Body:
	//	*PushBody_SilentPush
	//	*PushBody_AlertingPush
	//	*PushBody_VoipPush
	//	*PushBody_EncryptedPush
	//	*PushBody_ReadPush
	Body isPushBody_Body `protobuf_oneof:"body"`
}

func (*PushBody) Descriptor

func (*PushBody) Descriptor() ([]byte, []int)

func (*PushBody) Equal

func (this *PushBody) Equal(that interface{}) bool

func (*PushBody) GetAlertingPush

func (m *PushBody) GetAlertingPush() *AlertingPush

func (*PushBody) GetBody

func (m *PushBody) GetBody() isPushBody_Body

func (*PushBody) GetCollapseKey

func (m *PushBody) GetCollapseKey() string

func (*PushBody) GetEncryptedPush

func (m *PushBody) GetEncryptedPush() *EncryptedPush

func (*PushBody) GetReadPush added in v1.0.6

func (m *PushBody) GetReadPush() *ReadPush

func (*PushBody) GetSeq

func (m *PushBody) GetSeq() int32

func (*PushBody) GetSilentPush

func (m *PushBody) GetSilentPush() *SilentPush

func (*PushBody) GetTimeToLive

func (m *PushBody) GetTimeToLive() int32

func (*PushBody) GetVoipPush

func (m *PushBody) GetVoipPush() *VoipPush

func (*PushBody) GoString

func (this *PushBody) GoString() string

func (*PushBody) Marshal

func (m *PushBody) Marshal() (dAtA []byte, err error)

func (*PushBody) MarshalTo

func (m *PushBody) MarshalTo(dAtA []byte) (int, error)

func (*PushBody) MarshalToSizedBuffer added in v1.0.4

func (m *PushBody) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PushBody) ProtoMessage

func (*PushBody) ProtoMessage()

func (*PushBody) Reset

func (m *PushBody) Reset()

func (*PushBody) Size

func (m *PushBody) Size() (n int)

func (*PushBody) String

func (this *PushBody) String() string

func (*PushBody) Unmarshal

func (m *PushBody) Unmarshal(dAtA []byte) error

func (*PushBody) XXX_DiscardUnknown

func (m *PushBody) XXX_DiscardUnknown()

func (*PushBody) XXX_Marshal

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

func (*PushBody) XXX_Merge

func (m *PushBody) XXX_Merge(src proto.Message)

func (*PushBody) XXX_OneofWrappers added in v1.0.4

func (*PushBody) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PushBody) XXX_Size

func (m *PushBody) XXX_Size() int

func (*PushBody) XXX_Unmarshal

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

type PushBody_AlertingPush

type PushBody_AlertingPush struct {
	AlertingPush *AlertingPush `protobuf:"bytes,5,opt,name=alerting_push,json=alertingPush,proto3,oneof" json:"alerting_push,omitempty"`
}

func (*PushBody_AlertingPush) Equal

func (this *PushBody_AlertingPush) Equal(that interface{}) bool

func (*PushBody_AlertingPush) GoString

func (this *PushBody_AlertingPush) GoString() string

func (*PushBody_AlertingPush) MarshalTo

func (m *PushBody_AlertingPush) MarshalTo(dAtA []byte) (int, error)

func (*PushBody_AlertingPush) MarshalToSizedBuffer added in v1.0.4

func (m *PushBody_AlertingPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PushBody_AlertingPush) Size

func (m *PushBody_AlertingPush) Size() (n int)

func (*PushBody_AlertingPush) String

func (this *PushBody_AlertingPush) String() string

type PushBody_EncryptedPush

type PushBody_EncryptedPush struct {
	EncryptedPush *EncryptedPush `protobuf:"bytes,7,opt,name=encrypted_push,json=encryptedPush,proto3,oneof" json:"encrypted_push,omitempty"`
}

func (*PushBody_EncryptedPush) Equal

func (this *PushBody_EncryptedPush) Equal(that interface{}) bool

func (*PushBody_EncryptedPush) GoString

func (this *PushBody_EncryptedPush) GoString() string

func (*PushBody_EncryptedPush) MarshalTo

func (m *PushBody_EncryptedPush) MarshalTo(dAtA []byte) (int, error)

func (*PushBody_EncryptedPush) MarshalToSizedBuffer added in v1.0.4

func (m *PushBody_EncryptedPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PushBody_EncryptedPush) Size

func (m *PushBody_EncryptedPush) Size() (n int)

func (*PushBody_EncryptedPush) String

func (this *PushBody_EncryptedPush) String() string

type PushBody_ReadPush added in v1.0.6

type PushBody_ReadPush struct {
	ReadPush *ReadPush `protobuf:"bytes,8,opt,name=read_push,json=readPush,proto3,oneof" json:"read_push,omitempty"`
}

func (*PushBody_ReadPush) Equal added in v1.0.6

func (this *PushBody_ReadPush) Equal(that interface{}) bool

func (*PushBody_ReadPush) GoString added in v1.0.6

func (this *PushBody_ReadPush) GoString() string

func (*PushBody_ReadPush) MarshalTo added in v1.0.6

func (m *PushBody_ReadPush) MarshalTo(dAtA []byte) (int, error)

func (*PushBody_ReadPush) MarshalToSizedBuffer added in v1.0.6

func (m *PushBody_ReadPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PushBody_ReadPush) Size added in v1.0.6

func (m *PushBody_ReadPush) Size() (n int)

func (*PushBody_ReadPush) String added in v1.0.6

func (this *PushBody_ReadPush) String() string

type PushBody_SilentPush

type PushBody_SilentPush struct {
	SilentPush *SilentPush `protobuf:"bytes,4,opt,name=silent_push,json=silentPush,proto3,oneof" json:"silent_push,omitempty"`
}

func (*PushBody_SilentPush) Equal

func (this *PushBody_SilentPush) Equal(that interface{}) bool

func (*PushBody_SilentPush) GoString

func (this *PushBody_SilentPush) GoString() string

func (*PushBody_SilentPush) MarshalTo

func (m *PushBody_SilentPush) MarshalTo(dAtA []byte) (int, error)

func (*PushBody_SilentPush) MarshalToSizedBuffer added in v1.0.4

func (m *PushBody_SilentPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PushBody_SilentPush) Size

func (m *PushBody_SilentPush) Size() (n int)

func (*PushBody_SilentPush) String

func (this *PushBody_SilentPush) String() string

type PushBody_VoipPush

type PushBody_VoipPush struct {
	VoipPush *VoipPush `protobuf:"bytes,6,opt,name=voip_push,json=voipPush,proto3,oneof" json:"voip_push,omitempty"`
}

func (*PushBody_VoipPush) Equal

func (this *PushBody_VoipPush) Equal(that interface{}) bool

func (*PushBody_VoipPush) GoString

func (this *PushBody_VoipPush) GoString() string

func (*PushBody_VoipPush) MarshalTo

func (m *PushBody_VoipPush) MarshalTo(dAtA []byte) (int, error)

func (*PushBody_VoipPush) MarshalToSizedBuffer added in v1.0.4

func (m *PushBody_VoipPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PushBody_VoipPush) Size

func (m *PushBody_VoipPush) Size() (n int)

func (*PushBody_VoipPush) String

func (this *PushBody_VoipPush) String() string

type PushingClient

type PushingClient interface {
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PongResponse, error)
	PushStream(ctx context.Context, opts ...grpc.CallOption) (Pushing_PushStreamClient, error)
	SinglePush(ctx context.Context, in *Push, opts ...grpc.CallOption) (*Response, error)
}

PushingClient is the client API for Pushing service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPushingClient

func NewPushingClient(cc *grpc.ClientConn) PushingClient

type PushingServer

type PushingServer interface {
	Ping(context.Context, *PingRequest) (*PongResponse, error)
	PushStream(Pushing_PushStreamServer) error
	SinglePush(context.Context, *Push) (*Response, error)
}

PushingServer is the server API for Pushing service.

type Pushing_PushStreamClient

type Pushing_PushStreamClient interface {
	Send(*Push) error
	Recv() (*Response, error)
	grpc.ClientStream
}

type Pushing_PushStreamServer

type Pushing_PushStreamServer interface {
	Send(*Response) error
	Recv() (*Push, error)
	grpc.ServerStream
}

type ReadPush added in v1.0.6

type ReadPush struct {
	Peer         *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
	LastReadDate int64 `protobuf:"varint,2,opt,name=last_read_date,json=lastReadDate,proto3" json:"last_read_date,omitempty"`
}

func (*ReadPush) Descriptor added in v1.0.6

func (*ReadPush) Descriptor() ([]byte, []int)

func (*ReadPush) Equal added in v1.0.6

func (this *ReadPush) Equal(that interface{}) bool

func (*ReadPush) GetLastReadDate added in v1.0.6

func (m *ReadPush) GetLastReadDate() int64

func (*ReadPush) GetPeer added in v1.0.6

func (m *ReadPush) GetPeer() *Peer

func (*ReadPush) GoString added in v1.0.6

func (this *ReadPush) GoString() string

func (*ReadPush) Marshal added in v1.0.6

func (m *ReadPush) Marshal() (dAtA []byte, err error)

func (*ReadPush) MarshalTo added in v1.0.6

func (m *ReadPush) MarshalTo(dAtA []byte) (int, error)

func (*ReadPush) MarshalToSizedBuffer added in v1.0.6

func (m *ReadPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReadPush) ProtoMessage added in v1.0.6

func (*ReadPush) ProtoMessage()

func (*ReadPush) Reset added in v1.0.6

func (m *ReadPush) Reset()

func (*ReadPush) Size added in v1.0.6

func (m *ReadPush) Size() (n int)

func (*ReadPush) String added in v1.0.6

func (this *ReadPush) String() string

func (*ReadPush) Unmarshal added in v1.0.6

func (m *ReadPush) Unmarshal(dAtA []byte) error

func (*ReadPush) XXX_DiscardUnknown added in v1.0.6

func (m *ReadPush) XXX_DiscardUnknown()

func (*ReadPush) XXX_Marshal added in v1.0.6

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

func (*ReadPush) XXX_Merge added in v1.0.6

func (m *ReadPush) XXX_Merge(src proto.Message)

func (*ReadPush) XXX_Size added in v1.0.6

func (m *ReadPush) XXX_Size() int

func (*ReadPush) XXX_Unmarshal added in v1.0.6

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

type Response

type Response struct {
	ProjectInvalidations map[string]*DeviceIdList `` /* 209-byte string literal not displayed */
}

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) Equal

func (this *Response) Equal(that interface{}) bool

func (*Response) GetProjectInvalidations

func (m *Response) GetProjectInvalidations() map[string]*DeviceIdList

func (*Response) GoString

func (this *Response) GoString() string

func (*Response) Marshal

func (m *Response) Marshal() (dAtA []byte, err error)

func (*Response) MarshalTo

func (m *Response) MarshalTo(dAtA []byte) (int, error)

func (*Response) MarshalToSizedBuffer added in v1.0.4

func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

func (m *Response) Size() (n int)

func (*Response) String

func (this *Response) String() string

func (*Response) Unmarshal

func (m *Response) Unmarshal(dAtA []byte) error

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

type SilentPush

type SilentPush struct {
}

func (*SilentPush) Descriptor

func (*SilentPush) Descriptor() ([]byte, []int)

func (*SilentPush) Equal

func (this *SilentPush) Equal(that interface{}) bool

func (*SilentPush) GoString

func (this *SilentPush) GoString() string

func (*SilentPush) Marshal

func (m *SilentPush) Marshal() (dAtA []byte, err error)

func (*SilentPush) MarshalTo

func (m *SilentPush) MarshalTo(dAtA []byte) (int, error)

func (*SilentPush) MarshalToSizedBuffer added in v1.0.4

func (m *SilentPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SilentPush) ProtoMessage

func (*SilentPush) ProtoMessage()

func (*SilentPush) Reset

func (m *SilentPush) Reset()

func (*SilentPush) Size

func (m *SilentPush) Size() (n int)

func (*SilentPush) String

func (this *SilentPush) String() string

func (*SilentPush) Unmarshal

func (m *SilentPush) Unmarshal(dAtA []byte) error

func (*SilentPush) XXX_DiscardUnknown

func (m *SilentPush) XXX_DiscardUnknown()

func (*SilentPush) XXX_Marshal

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

func (*SilentPush) XXX_Merge

func (m *SilentPush) XXX_Merge(src proto.Message)

func (*SilentPush) XXX_Size

func (m *SilentPush) XXX_Size() int

func (*SilentPush) XXX_Unmarshal

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

type UnimplementedPushingServer

type UnimplementedPushingServer struct {
}

UnimplementedPushingServer can be embedded to have forward compatible implementations.

func (*UnimplementedPushingServer) Ping

func (*UnimplementedPushingServer) PushStream

func (*UnimplementedPushingServer) SinglePush

func (*UnimplementedPushingServer) SinglePush(ctx context.Context, req *Push) (*Response, error)

type VoipPush

type VoipPush struct {
	CallId         int64           `protobuf:"varint,1,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	AttemptIndex   int32           `protobuf:"varint,2,opt,name=attempt_index,json=attemptIndex,proto3" json:"attempt_index,omitempty"`
	DisplayName    string          `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	EventBusId     string          `protobuf:"bytes,4,opt,name=event_bus_id,json=eventBusId,proto3" json:"event_bus_id,omitempty"`
	Peer           *Peer           `protobuf:"bytes,5,opt,name=peer,proto3" json:"peer,omitempty"`
	UpdateType     string          `protobuf:"bytes,6,opt,name=update_type,json=updateType,proto3" json:"update_type,omitempty"`
	DisposalReason string          `protobuf:"bytes,7,opt,name=disposal_reason,json=disposalReason,proto3" json:"disposal_reason,omitempty"`
	OutPeer        *OutPeer        `protobuf:"bytes,8,opt,name=outPeer,proto3" json:"outPeer,omitempty"`
	Video          bool            `protobuf:"varint,9,opt,name=video,proto3" json:"video,omitempty"`
	CallIdStr      string          `protobuf:"bytes,10,opt,name=call_id_str,json=callIdStr,proto3" json:"call_id_str,omitempty"`
	Token          string          `protobuf:"bytes,11,opt,name=token,proto3" json:"token,omitempty"`
	Endpoint       string          `protobuf:"bytes,12,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Merge          *MergeCallModel `protobuf:"bytes,13,opt,name=merge,proto3" json:"merge,omitempty"`
}

func (*VoipPush) Descriptor

func (*VoipPush) Descriptor() ([]byte, []int)

func (*VoipPush) Equal

func (this *VoipPush) Equal(that interface{}) bool

func (*VoipPush) GetAttemptIndex

func (m *VoipPush) GetAttemptIndex() int32

func (*VoipPush) GetCallId

func (m *VoipPush) GetCallId() int64

func (*VoipPush) GetCallIdStr added in v1.0.5

func (m *VoipPush) GetCallIdStr() string

func (*VoipPush) GetDisplayName

func (m *VoipPush) GetDisplayName() string

func (*VoipPush) GetDisposalReason

func (m *VoipPush) GetDisposalReason() string

func (*VoipPush) GetEndpoint added in v1.0.6

func (m *VoipPush) GetEndpoint() string

func (*VoipPush) GetEventBusId

func (m *VoipPush) GetEventBusId() string

func (*VoipPush) GetMerge added in v1.0.7

func (m *VoipPush) GetMerge() *MergeCallModel

func (*VoipPush) GetOutPeer

func (m *VoipPush) GetOutPeer() *OutPeer

func (*VoipPush) GetPeer

func (m *VoipPush) GetPeer() *Peer

func (*VoipPush) GetToken added in v1.0.6

func (m *VoipPush) GetToken() string

func (*VoipPush) GetUpdateType

func (m *VoipPush) GetUpdateType() string

func (*VoipPush) GetVideo

func (m *VoipPush) GetVideo() bool

func (*VoipPush) GoString

func (this *VoipPush) GoString() string

func (*VoipPush) Marshal

func (m *VoipPush) Marshal() (dAtA []byte, err error)

func (*VoipPush) MarshalTo

func (m *VoipPush) MarshalTo(dAtA []byte) (int, error)

func (*VoipPush) MarshalToSizedBuffer added in v1.0.4

func (m *VoipPush) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VoipPush) ProtoMessage

func (*VoipPush) ProtoMessage()

func (*VoipPush) Reset

func (m *VoipPush) Reset()

func (*VoipPush) Size

func (m *VoipPush) Size() (n int)

func (*VoipPush) String

func (this *VoipPush) String() string

func (*VoipPush) Unmarshal

func (m *VoipPush) Unmarshal(dAtA []byte) error

func (*VoipPush) XXX_DiscardUnknown

func (m *VoipPush) XXX_DiscardUnknown()

func (*VoipPush) XXX_Marshal

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

func (*VoipPush) XXX_Merge

func (m *VoipPush) XXX_Merge(src proto.Message)

func (*VoipPush) XXX_Size

func (m *VoipPush) XXX_Size() int

func (*VoipPush) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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