Documentation
¶
Index ¶
- Variables
- type DevicePushType
- type Priority
- type PushData
- func (*PushData) Descriptor() ([]byte, []int)
- func (m *PushData) GetEnvelope() []byte
- func (m *PushData) GetPriority() Priority
- func (m *PushData) GetPushIdentifier() []byte
- func (m *PushData) Marshal() (dAtA []byte, err error)
- func (m *PushData) MarshalTo(dAtA []byte) (int, error)
- func (*PushData) ProtoMessage()
- func (m *PushData) Reset()
- func (m *PushData) Size() (n int)
- func (m *PushData) String() string
- func (m *PushData) Unmarshal(dAtA []byte) error
- func (m *PushData) XXX_DiscardUnknown()
- func (m *PushData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushData) XXX_Merge(src proto.Message)
- func (m *PushData) XXX_Size() int
- func (m *PushData) XXX_Unmarshal(b []byte) error
- type PushDestination
- func (*PushDestination) Descriptor() ([]byte, []int)
- func (m *PushDestination) GetNonce() []byte
- func (m *PushDestination) GetPushId() []byte
- func (m *PushDestination) GetPushType() DevicePushType
- func (m *PushDestination) Marshal() (dAtA []byte, err error)
- func (m *PushDestination) MarshalTo(dAtA []byte) (int, error)
- func (*PushDestination) ProtoMessage()
- func (m *PushDestination) Reset()
- func (m *PushDestination) Size() (n int)
- func (m *PushDestination) String() string
- func (m *PushDestination) Unmarshal(dAtA []byte) error
- func (m *PushDestination) XXX_DiscardUnknown()
- func (m *PushDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushDestination) XXX_Merge(src proto.Message)
- func (m *PushDestination) XXX_Size() int
- func (m *PushDestination) XXX_Unmarshal(b []byte) error
- type PushNativeIdentifier
- func (*PushNativeIdentifier) Descriptor() ([]byte, []int)
- func (m *PushNativeIdentifier) GetDeviceToken() string
- func (m *PushNativeIdentifier) GetPackageID() string
- func (m *PushNativeIdentifier) Marshal() (dAtA []byte, err error)
- func (m *PushNativeIdentifier) MarshalTo(dAtA []byte) (int, error)
- func (*PushNativeIdentifier) ProtoMessage()
- func (m *PushNativeIdentifier) Reset()
- func (m *PushNativeIdentifier) Size() (n int)
- func (m *PushNativeIdentifier) String() string
- func (m *PushNativeIdentifier) Unmarshal(dAtA []byte) error
- func (m *PushNativeIdentifier) XXX_DiscardUnknown()
- func (m *PushNativeIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushNativeIdentifier) XXX_Merge(src proto.Message)
- func (m *PushNativeIdentifier) XXX_Size() int
- func (m *PushNativeIdentifier) XXX_Unmarshal(b []byte) error
- type PushToInput
- func (*PushToInput) Descriptor() ([]byte, []int)
- func (m *PushToInput) GetPushData() []*PushData
- func (m *PushToInput) Marshal() (dAtA []byte, err error)
- func (m *PushToInput) MarshalTo(dAtA []byte) (int, error)
- func (*PushToInput) ProtoMessage()
- func (m *PushToInput) Reset()
- func (m *PushToInput) Size() (n int)
- func (m *PushToInput) String() string
- func (m *PushToInput) Unmarshal(dAtA []byte) error
- func (m *PushToInput) XXX_DiscardUnknown()
- func (m *PushToInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushToInput) XXX_Merge(src proto.Message)
- func (m *PushToInput) XXX_Size() int
- func (m *PushToInput) XXX_Unmarshal(b []byte) error
- type Void
- func (*Void) Descriptor() ([]byte, []int)
- func (m *Void) Marshal() (dAtA []byte, err error)
- func (m *Void) MarshalTo(dAtA []byte) (int, error)
- func (*Void) ProtoMessage()
- func (m *Void) Reset()
- func (m *Void) Size() (n int)
- func (m *Void) String() string
- func (m *Void) Unmarshal(dAtA []byte) error
- func (m *Void) XXX_DiscardUnknown()
- func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Void) XXX_Merge(src proto.Message)
- func (m *Void) XXX_Size() int
- func (m *Void) XXX_Unmarshal(b []byte) error
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 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) GetEnvelope ¶
func (*PushData) GetPriority ¶
func (*PushData) GetPushIdentifier ¶
func (*PushData) ProtoMessage ¶
func (*PushData) ProtoMessage()
func (*PushData) XXX_DiscardUnknown ¶
func (m *PushData) XXX_DiscardUnknown()
func (*PushData) XXX_Marshal ¶
func (*PushData) XXX_Unmarshal ¶
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) 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) 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) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) XXX_DiscardUnknown ¶
func (m *Void) XXX_DiscardUnknown()
func (*Void) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.