push

package
v0.0.0-...-e1bfb01 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPush = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPush   = fmt.Errorf("proto: integer overflow")
)
View Source
var DevicePushType_name = map[int32]string{
	0: "UnknownDevicePushType",
	1: "APNS",
	2: "FCM",
	3: "MQTT",
}
View Source
var DevicePushType_value = map[string]int32{
	"UnknownDevicePushType": 0,
	"APNS":                  1,
	"FCM":                   2,
	"MQTT":                  3,
}
View Source
var Priority_name = map[int32]string{
	0: "UnknownPriority",
	1: "Low",
	2: "Normal",
}
View Source
var Priority_value = map[string]int32{
	"UnknownPriority": 0,
	"Low":             1,
	"Normal":          2,
}

Functions

This section is empty.

Types

type DevicePushType

type DevicePushType int32
const (
	DevicePushType_UnknownDevicePushType DevicePushType = 0
	DevicePushType_APNS                  DevicePushType = 1
	DevicePushType_FCM                   DevicePushType = 2
	DevicePushType_MQTT                  DevicePushType = 3
)

func (DevicePushType) EnumDescriptor

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

func (DevicePushType) String

func (x DevicePushType) String() string

type Priority

type Priority int32
const (
	Priority_UnknownPriority Priority = 0
	Priority_Low             Priority = 1
	Priority_Normal          Priority = 2
)

func (Priority) EnumDescriptor

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

func (Priority) String

func (x Priority) String() string

type PushData

type PushData struct {
	PushIdentifier       []byte   `protobuf:"bytes,1,opt,name=push_identifier,json=pushIdentifier,proto3" json:"push_identifier,omitempty"`
	Envelope             []byte   `protobuf:"bytes,2,opt,name=envelope,proto3" json:"envelope,omitempty"`
	Priority             Priority `protobuf:"varint,3,opt,name=priority,proto3,enum=berty.push.Priority" json:"priority,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PushData) Descriptor

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

func (*PushData) GetEnvelope

func (m *PushData) GetEnvelope() []byte

func (*PushData) GetPriority

func (m *PushData) GetPriority() Priority

func (*PushData) GetPushIdentifier

func (m *PushData) GetPushIdentifier() []byte

func (*PushData) Marshal

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

func (*PushData) MarshalTo

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

func (*PushData) ProtoMessage

func (*PushData) ProtoMessage()

func (*PushData) Reset

func (m *PushData) Reset()

func (*PushData) Size

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

func (*PushData) String

func (m *PushData) String() string

func (*PushData) Unmarshal

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

func (*PushData) XXX_DiscardUnknown

func (m *PushData) XXX_DiscardUnknown()

func (*PushData) XXX_Marshal

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

func (*PushData) XXX_Merge

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

func (*PushData) XXX_Size

func (m *PushData) XXX_Size() int

func (*PushData) XXX_Unmarshal

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

type PushDestination

type PushDestination struct {
	Nonce                []byte         `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	PushType             DevicePushType `protobuf:"varint,2,opt,name=push_type,json=pushType,proto3,enum=berty.push.DevicePushType" json:"push_type,omitempty"`
	PushId               []byte         `protobuf:"bytes,3,opt,name=push_id,json=pushId,proto3" json:"push_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*PushDestination) Descriptor

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

func (*PushDestination) GetNonce

func (m *PushDestination) GetNonce() []byte

func (*PushDestination) GetPushId

func (m *PushDestination) GetPushId() []byte

func (*PushDestination) GetPushType

func (m *PushDestination) GetPushType() DevicePushType

func (*PushDestination) Marshal

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

func (*PushDestination) MarshalTo

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

func (*PushDestination) ProtoMessage

func (*PushDestination) ProtoMessage()

func (*PushDestination) Reset

func (m *PushDestination) Reset()

func (*PushDestination) Size

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

func (*PushDestination) String

func (m *PushDestination) String() string

func (*PushDestination) Unmarshal

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

func (*PushDestination) XXX_DiscardUnknown

func (m *PushDestination) XXX_DiscardUnknown()

func (*PushDestination) XXX_Marshal

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

func (*PushDestination) XXX_Merge

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

func (*PushDestination) XXX_Size

func (m *PushDestination) XXX_Size() int

func (*PushDestination) XXX_Unmarshal

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

type PushNativeIdentifier

type PushNativeIdentifier struct {
	PackageID            string   `protobuf:"bytes,1,opt,name=package_id,json=packageId,proto3" json:"package_id,omitempty"`
	DeviceToken          string   `protobuf:"bytes,2,opt,name=device_token,json=deviceToken,proto3" json:"device_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PushNativeIdentifier) Descriptor

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

func (*PushNativeIdentifier) GetDeviceToken

func (m *PushNativeIdentifier) GetDeviceToken() string

func (*PushNativeIdentifier) GetPackageID

func (m *PushNativeIdentifier) GetPackageID() string

func (*PushNativeIdentifier) Marshal

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

func (*PushNativeIdentifier) MarshalTo

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

func (*PushNativeIdentifier) ProtoMessage

func (*PushNativeIdentifier) ProtoMessage()

func (*PushNativeIdentifier) Reset

func (m *PushNativeIdentifier) Reset()

func (*PushNativeIdentifier) Size

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

func (*PushNativeIdentifier) String

func (m *PushNativeIdentifier) String() string

func (*PushNativeIdentifier) Unmarshal

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

func (*PushNativeIdentifier) XXX_DiscardUnknown

func (m *PushNativeIdentifier) XXX_DiscardUnknown()

func (*PushNativeIdentifier) XXX_Marshal

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

func (*PushNativeIdentifier) XXX_Merge

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

func (*PushNativeIdentifier) XXX_Size

func (m *PushNativeIdentifier) XXX_Size() int

func (*PushNativeIdentifier) XXX_Unmarshal

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

type PushToInput

type PushToInput struct {
	PushData             []*PushData `protobuf:"bytes,1,rep,name=push_data,json=pushData,proto3" json:"push_data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*PushToInput) Descriptor

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

func (*PushToInput) GetPushData

func (m *PushToInput) GetPushData() []*PushData

func (*PushToInput) Marshal

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

func (*PushToInput) MarshalTo

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

func (*PushToInput) ProtoMessage

func (*PushToInput) ProtoMessage()

func (*PushToInput) Reset

func (m *PushToInput) Reset()

func (*PushToInput) Size

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

func (*PushToInput) String

func (m *PushToInput) String() string

func (*PushToInput) Unmarshal

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

func (*PushToInput) XXX_DiscardUnknown

func (m *PushToInput) XXX_DiscardUnknown()

func (*PushToInput) XXX_Marshal

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

func (*PushToInput) XXX_Merge

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

func (*PushToInput) XXX_Size

func (m *PushToInput) XXX_Size() int

func (*PushToInput) XXX_Unmarshal

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

type Void

type Void struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Void) Descriptor

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

func (*Void) Marshal

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

func (*Void) MarshalTo

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

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) Reset

func (m *Void) Reset()

func (*Void) Size

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

func (*Void) String

func (m *Void) String() string

func (*Void) Unmarshal

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

func (*Void) XXX_DiscardUnknown

func (m *Void) XXX_DiscardUnknown()

func (*Void) XXX_Marshal

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

func (*Void) XXX_Merge

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

func (*Void) XXX_Size

func (m *Void) XXX_Size() int

func (*Void) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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