Documentation ¶
Overview ¶
Package pushtypes is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterPushServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPushServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PushServiceClient) error
- func RegisterPushServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPushServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PushServiceServer) error
- func RegisterPushServiceServer(s grpc.ServiceRegistrar, srv PushServiceServer)
- type DecryptedPush
- func (*DecryptedPush) Descriptor() ([]byte, []int)deprecated
- func (x *DecryptedPush) GetAccountId() string
- func (x *DecryptedPush) GetAccountMuted() bool
- func (x *DecryptedPush) GetAccountName() string
- func (x *DecryptedPush) GetAlreadyReceived() bool
- func (x *DecryptedPush) GetConversationDisplayName() string
- func (x *DecryptedPush) GetConversationMuted() bool
- func (x *DecryptedPush) GetConversationPublicKey() string
- func (x *DecryptedPush) GetDeepLink() string
- func (x *DecryptedPush) GetHidePreview() bool
- func (x *DecryptedPush) GetMemberDisplayName() string
- func (x *DecryptedPush) GetMemberPublicKey() string
- func (x *DecryptedPush) GetPayloadAttrsJson() string
- func (x *DecryptedPush) GetPushType() DecryptedPush_PushType
- func (*DecryptedPush) ProtoMessage()
- func (x *DecryptedPush) ProtoReflect() protoreflect.Message
- func (x *DecryptedPush) Reset()
- func (x *DecryptedPush) String() string
- type DecryptedPush_PushType
- func (DecryptedPush_PushType) Descriptor() protoreflect.EnumDescriptor
- func (x DecryptedPush_PushType) Enum() *DecryptedPush_PushType
- func (DecryptedPush_PushType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DecryptedPush_PushType) Number() protoreflect.EnumNumber
- func (x DecryptedPush_PushType) String() string
- func (DecryptedPush_PushType) Type() protoreflect.EnumType
- type FormatedPush
- func (*FormatedPush) Descriptor() ([]byte, []int)deprecated
- func (x *FormatedPush) GetBody() string
- func (x *FormatedPush) GetConversationIdentifier() string
- func (x *FormatedPush) GetDeepLink() string
- func (x *FormatedPush) GetHidePreview() bool
- func (x *FormatedPush) GetMuted() bool
- func (x *FormatedPush) GetPushType() DecryptedPush_PushType
- func (x *FormatedPush) GetSubtitle() string
- func (x *FormatedPush) GetTitle() string
- func (*FormatedPush) ProtoMessage()
- func (x *FormatedPush) ProtoReflect() protoreflect.Message
- func (x *FormatedPush) Reset()
- func (x *FormatedPush) String() string
- type OutOfStoreExposedData
- func (*OutOfStoreExposedData) Descriptor() ([]byte, []int)deprecated
- func (x *OutOfStoreExposedData) GetBox() []byte
- func (x *OutOfStoreExposedData) GetNonce() []byte
- func (*OutOfStoreExposedData) ProtoMessage()
- func (x *OutOfStoreExposedData) ProtoReflect() protoreflect.Message
- func (x *OutOfStoreExposedData) Reset()
- func (x *OutOfStoreExposedData) String() string
- type PushMockedDispatcher
- func (d *PushMockedDispatcher) BundleID() string
- func (d *PushMockedDispatcher) Debug() string
- func (d *PushMockedDispatcher) Dispatch(data []byte, receiver *PushServiceReceiver) error
- func (d *PushMockedDispatcher) Len(token []byte) int
- func (d *PushMockedDispatcher) Shift(token []byte) []byte
- func (d *PushMockedDispatcher) TokenType() PushServiceTokenType
- type PushServiceClient
- type PushServiceOpaqueReceiver
- func (*PushServiceOpaqueReceiver) Descriptor() ([]byte, []int)deprecated
- func (x *PushServiceOpaqueReceiver) GetOpaqueToken() []byte
- func (x *PushServiceOpaqueReceiver) GetServiceAddr() string
- func (*PushServiceOpaqueReceiver) ProtoMessage()
- func (x *PushServiceOpaqueReceiver) ProtoReflect() protoreflect.Message
- func (x *PushServiceOpaqueReceiver) Reset()
- func (x *PushServiceOpaqueReceiver) String() string
- type PushServicePriority
- func (PushServicePriority) Descriptor() protoreflect.EnumDescriptor
- func (x PushServicePriority) Enum() *PushServicePriority
- func (PushServicePriority) EnumDescriptor() ([]byte, []int)deprecated
- func (x PushServicePriority) Number() protoreflect.EnumNumber
- func (x PushServicePriority) String() string
- func (PushServicePriority) Type() protoreflect.EnumType
- type PushServiceReceiver
- func (*PushServiceReceiver) Descriptor() ([]byte, []int)deprecated
- func (x *PushServiceReceiver) GetBundleId() string
- func (x *PushServiceReceiver) GetRecipientPublicKey() []byte
- func (x *PushServiceReceiver) GetToken() []byte
- func (x *PushServiceReceiver) GetTokenType() PushServiceTokenType
- func (*PushServiceReceiver) ProtoMessage()
- func (x *PushServiceReceiver) ProtoReflect() protoreflect.Message
- func (x *PushServiceReceiver) Reset()
- func (x *PushServiceReceiver) String() string
- type PushServiceSend
- type PushServiceSend_Reply
- type PushServiceSend_Request
- func (*PushServiceSend_Request) Descriptor() ([]byte, []int)deprecated
- func (x *PushServiceSend_Request) GetEnvelope() []byte
- func (x *PushServiceSend_Request) GetPriority() PushServicePriority
- func (x *PushServiceSend_Request) GetReceivers() []*PushServiceOpaqueReceiver
- func (*PushServiceSend_Request) ProtoMessage()
- func (x *PushServiceSend_Request) ProtoReflect() protoreflect.Message
- func (x *PushServiceSend_Request) Reset()
- func (x *PushServiceSend_Request) String() string
- type PushServiceServer
- type PushServiceServerInfo
- type PushServiceServerInfo_Reply
- func (*PushServiceServerInfo_Reply) Descriptor() ([]byte, []int)deprecated
- func (x *PushServiceServerInfo_Reply) GetPublicKey() []byte
- func (x *PushServiceServerInfo_Reply) GetSupportedTokenTypes() []*PushServiceSupportedTokenType
- func (*PushServiceServerInfo_Reply) ProtoMessage()
- func (x *PushServiceServerInfo_Reply) ProtoReflect() protoreflect.Message
- func (x *PushServiceServerInfo_Reply) Reset()
- func (x *PushServiceServerInfo_Reply) String() string
- type PushServiceServerInfo_Request
- func (*PushServiceServerInfo_Request) Descriptor() ([]byte, []int)deprecated
- func (*PushServiceServerInfo_Request) ProtoMessage()
- func (x *PushServiceServerInfo_Request) ProtoReflect() protoreflect.Message
- func (x *PushServiceServerInfo_Request) Reset()
- func (x *PushServiceServerInfo_Request) String() string
- type PushServiceSupportedTokenType
- func (*PushServiceSupportedTokenType) Descriptor() ([]byte, []int)deprecated
- func (x *PushServiceSupportedTokenType) GetAppBundleId() string
- func (x *PushServiceSupportedTokenType) GetTokenType() PushServiceTokenType
- func (*PushServiceSupportedTokenType) ProtoMessage()
- func (x *PushServiceSupportedTokenType) ProtoReflect() protoreflect.Message
- func (x *PushServiceSupportedTokenType) Reset()
- func (x *PushServiceSupportedTokenType) String() string
- type PushServiceTokenType
- func (PushServiceTokenType) Descriptor() protoreflect.EnumDescriptor
- func (x PushServiceTokenType) Enum() *PushServiceTokenType
- func (PushServiceTokenType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PushServiceTokenType) Number() protoreflect.EnumNumber
- func (x PushServiceTokenType) String() string
- func (PushServiceTokenType) Type() protoreflect.EnumType
- type UnimplementedPushServiceServer
- type UnsafePushServiceServer
Constants ¶
const ( PushService_ServerInfo_FullMethodName = "/berty.push.v1.PushService/ServerInfo" PushService_Send_FullMethodName = "/berty.push.v1.PushService/Send" )
const ( DummyPushServerAddr = "server.test" PushMockBundleID = "tech.berty.mock" )
const ServicePushPayloadKey = "p"
Variables ¶
var ( PushServiceTokenType_name = map[int32]string{ 0: "PushTokenUndefined", 1: "PushTokenMQTT", 2: "PushTokenApplePushNotificationService", 3: "PushTokenFirebaseCloudMessaging", 4: "PushTokenWindowsPushNotificationService", 5: "PushTokenHuaweiPushKit", 6: "PushTokenAmazonDeviceMessaging", } PushServiceTokenType_value = map[string]int32{ "PushTokenUndefined": 0, "PushTokenMQTT": 1, "PushTokenApplePushNotificationService": 2, "PushTokenFirebaseCloudMessaging": 3, "PushTokenWindowsPushNotificationService": 4, "PushTokenHuaweiPushKit": 5, "PushTokenAmazonDeviceMessaging": 6, } )
Enum value maps for PushServiceTokenType.
var ( PushServicePriority_name = map[int32]string{ 0: "PushPriorityUndefined", 1: "PushPriorityLow", 2: "PushPriorityNormal", } PushServicePriority_value = map[string]int32{ "PushPriorityUndefined": 0, "PushPriorityLow": 1, "PushPriorityNormal": 2, } )
Enum value maps for PushServicePriority.
var ( DecryptedPush_PushType_name = map[int32]string{ 0: "Unknown", 1: "Message", 7: "GroupInvitation", 8: "ConversationNameChanged", 9: "MemberNameChanged", 11: "MemberDetailsChanged", } DecryptedPush_PushType_value = map[string]int32{ "Unknown": 0, "Message": 1, "GroupInvitation": 7, "ConversationNameChanged": 8, "MemberNameChanged": 9, "MemberDetailsChanged": 11, } )
Enum value maps for DecryptedPush_PushType.
var File_pushtypes_bertypushtypes_proto protoreflect.FileDescriptor
var PushService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "berty.push.v1.PushService", HandlerType: (*PushServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ServerInfo", Handler: _PushService_ServerInfo_Handler, }, { MethodName: "Send", Handler: _PushService_Send_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pushtypes/bertypushtypes.proto", }
PushService_ServiceDesc is the grpc.ServiceDesc for PushService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPushServiceHandler ¶
func RegisterPushServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPushServiceHandler registers the http handlers for service PushService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPushServiceHandlerClient ¶
func RegisterPushServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PushServiceClient) error
RegisterPushServiceHandlerClient registers the http handlers for service PushService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PushServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PushServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PushServiceClient" to call the correct interceptors.
func RegisterPushServiceHandlerFromEndpoint ¶
func RegisterPushServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPushServiceHandlerFromEndpoint is same as RegisterPushServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPushServiceHandlerServer ¶
func RegisterPushServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PushServiceServer) error
RegisterPushServiceHandlerServer registers the http handlers for service PushService to "mux". UnaryRPC :call PushServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPushServiceHandlerFromEndpoint instead.
func RegisterPushServiceServer ¶
func RegisterPushServiceServer(s grpc.ServiceRegistrar, srv PushServiceServer)
Types ¶
type DecryptedPush ¶
type DecryptedPush struct { AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` ConversationPublicKey string `` /* 126-byte string literal not displayed */ ConversationDisplayName string `` /* 132-byte string literal not displayed */ MemberPublicKey string `protobuf:"bytes,5,opt,name=member_public_key,json=memberPublicKey,proto3" json:"member_public_key,omitempty"` MemberDisplayName string `protobuf:"bytes,6,opt,name=member_display_name,json=memberDisplayName,proto3" json:"member_display_name,omitempty"` PushType DecryptedPush_PushType `` /* 128-byte string literal not displayed */ PayloadAttrsJson string `protobuf:"bytes,8,opt,name=payload_attrs_json,json=payloadAttrsJson,proto3" json:"payload_attrs_json,omitempty"` DeepLink string `protobuf:"bytes,9,opt,name=deep_link,json=deepLink,proto3" json:"deep_link,omitempty"` AlreadyReceived bool `protobuf:"varint,10,opt,name=already_received,json=alreadyReceived,proto3" json:"already_received,omitempty"` AccountMuted bool `protobuf:"varint,11,opt,name=account_muted,json=accountMuted,proto3" json:"account_muted,omitempty"` ConversationMuted bool `protobuf:"varint,12,opt,name=conversation_muted,json=conversationMuted,proto3" json:"conversation_muted,omitempty"` HidePreview bool `protobuf:"varint,13,opt,name=hide_preview,json=hidePreview,proto3" json:"hide_preview,omitempty"` // contains filtered or unexported fields }
func (*DecryptedPush) Descriptor
deprecated
func (*DecryptedPush) Descriptor() ([]byte, []int)
Deprecated: Use DecryptedPush.ProtoReflect.Descriptor instead.
func (*DecryptedPush) GetAccountId ¶ added in v2.470.4
func (x *DecryptedPush) GetAccountId() string
func (*DecryptedPush) GetAccountMuted ¶ added in v2.381.0
func (x *DecryptedPush) GetAccountMuted() bool
func (*DecryptedPush) GetAccountName ¶
func (x *DecryptedPush) GetAccountName() string
func (*DecryptedPush) GetAlreadyReceived ¶ added in v2.316.0
func (x *DecryptedPush) GetAlreadyReceived() bool
func (*DecryptedPush) GetConversationDisplayName ¶
func (x *DecryptedPush) GetConversationDisplayName() string
func (*DecryptedPush) GetConversationMuted ¶ added in v2.381.0
func (x *DecryptedPush) GetConversationMuted() bool
func (*DecryptedPush) GetConversationPublicKey ¶
func (x *DecryptedPush) GetConversationPublicKey() string
func (*DecryptedPush) GetDeepLink ¶
func (x *DecryptedPush) GetDeepLink() string
func (*DecryptedPush) GetHidePreview ¶ added in v2.381.0
func (x *DecryptedPush) GetHidePreview() bool
func (*DecryptedPush) GetMemberDisplayName ¶
func (x *DecryptedPush) GetMemberDisplayName() string
func (*DecryptedPush) GetMemberPublicKey ¶
func (x *DecryptedPush) GetMemberPublicKey() string
func (*DecryptedPush) GetPayloadAttrsJson ¶ added in v2.470.4
func (x *DecryptedPush) GetPayloadAttrsJson() string
func (*DecryptedPush) GetPushType ¶
func (x *DecryptedPush) GetPushType() DecryptedPush_PushType
func (*DecryptedPush) ProtoMessage ¶
func (*DecryptedPush) ProtoMessage()
func (*DecryptedPush) ProtoReflect ¶ added in v2.470.4
func (x *DecryptedPush) ProtoReflect() protoreflect.Message
func (*DecryptedPush) Reset ¶
func (x *DecryptedPush) Reset()
func (*DecryptedPush) String ¶
func (x *DecryptedPush) String() string
type DecryptedPush_PushType ¶
type DecryptedPush_PushType int32
const ( DecryptedPush_Unknown DecryptedPush_PushType = 0 DecryptedPush_Message DecryptedPush_PushType = 1 DecryptedPush_GroupInvitation DecryptedPush_PushType = 7 DecryptedPush_ConversationNameChanged DecryptedPush_PushType = 8 DecryptedPush_MemberNameChanged DecryptedPush_PushType = 9 DecryptedPush_MemberDetailsChanged DecryptedPush_PushType = 11 )
func (DecryptedPush_PushType) Descriptor ¶ added in v2.470.4
func (DecryptedPush_PushType) Descriptor() protoreflect.EnumDescriptor
func (DecryptedPush_PushType) Enum ¶ added in v2.470.4
func (x DecryptedPush_PushType) Enum() *DecryptedPush_PushType
func (DecryptedPush_PushType) EnumDescriptor
deprecated
func (DecryptedPush_PushType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DecryptedPush_PushType.Descriptor instead.
func (DecryptedPush_PushType) Number ¶ added in v2.470.4
func (x DecryptedPush_PushType) Number() protoreflect.EnumNumber
func (DecryptedPush_PushType) String ¶
func (x DecryptedPush_PushType) String() string
func (DecryptedPush_PushType) Type ¶ added in v2.470.4
func (DecryptedPush_PushType) Type() protoreflect.EnumType
type FormatedPush ¶ added in v2.327.0
type FormatedPush struct { PushType DecryptedPush_PushType `` /* 128-byte string literal not displayed */ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Subtitle string `protobuf:"bytes,3,opt,name=subtitle,proto3" json:"subtitle,omitempty"` Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` DeepLink string `protobuf:"bytes,5,opt,name=deep_link,json=deepLink,proto3" json:"deep_link,omitempty"` Muted bool `protobuf:"varint,6,opt,name=muted,proto3" json:"muted,omitempty"` HidePreview bool `protobuf:"varint,7,opt,name=hide_preview,json=hidePreview,proto3" json:"hide_preview,omitempty"` ConversationIdentifier string `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*FormatedPush) Descriptor
deprecated
added in
v2.327.0
func (*FormatedPush) Descriptor() ([]byte, []int)
Deprecated: Use FormatedPush.ProtoReflect.Descriptor instead.
func (*FormatedPush) GetBody ¶ added in v2.327.0
func (x *FormatedPush) GetBody() string
func (*FormatedPush) GetConversationIdentifier ¶ added in v2.381.0
func (x *FormatedPush) GetConversationIdentifier() string
func (*FormatedPush) GetDeepLink ¶ added in v2.327.0
func (x *FormatedPush) GetDeepLink() string
func (*FormatedPush) GetHidePreview ¶ added in v2.381.0
func (x *FormatedPush) GetHidePreview() bool
func (*FormatedPush) GetMuted ¶ added in v2.381.0
func (x *FormatedPush) GetMuted() bool
func (*FormatedPush) GetPushType ¶ added in v2.327.0
func (x *FormatedPush) GetPushType() DecryptedPush_PushType
func (*FormatedPush) GetSubtitle ¶ added in v2.327.0
func (x *FormatedPush) GetSubtitle() string
func (*FormatedPush) GetTitle ¶ added in v2.327.0
func (x *FormatedPush) GetTitle() string
func (*FormatedPush) ProtoMessage ¶ added in v2.327.0
func (*FormatedPush) ProtoMessage()
func (*FormatedPush) ProtoReflect ¶ added in v2.470.4
func (x *FormatedPush) ProtoReflect() protoreflect.Message
func (*FormatedPush) Reset ¶ added in v2.327.0
func (x *FormatedPush) Reset()
func (*FormatedPush) String ¶ added in v2.327.0
func (x *FormatedPush) String() string
type OutOfStoreExposedData ¶ added in v2.470.0
type OutOfStoreExposedData struct { Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` Box []byte `protobuf:"bytes,2,opt,name=box,proto3" json:"box,omitempty"` // contains filtered or unexported fields }
func (*OutOfStoreExposedData) Descriptor
deprecated
added in
v2.470.0
func (*OutOfStoreExposedData) Descriptor() ([]byte, []int)
Deprecated: Use OutOfStoreExposedData.ProtoReflect.Descriptor instead.
func (*OutOfStoreExposedData) GetBox ¶ added in v2.470.0
func (x *OutOfStoreExposedData) GetBox() []byte
func (*OutOfStoreExposedData) GetNonce ¶ added in v2.470.0
func (x *OutOfStoreExposedData) GetNonce() []byte
func (*OutOfStoreExposedData) ProtoMessage ¶ added in v2.470.0
func (*OutOfStoreExposedData) ProtoMessage()
func (*OutOfStoreExposedData) ProtoReflect ¶ added in v2.470.4
func (x *OutOfStoreExposedData) ProtoReflect() protoreflect.Message
func (*OutOfStoreExposedData) Reset ¶ added in v2.470.0
func (x *OutOfStoreExposedData) Reset()
func (*OutOfStoreExposedData) String ¶ added in v2.470.0
func (x *OutOfStoreExposedData) String() string
type PushMockedDispatcher ¶ added in v2.470.0
type PushMockedDispatcher struct {
// contains filtered or unexported fields
}
func NewPushMockedDispatcher ¶ added in v2.470.0
func NewPushMockedDispatcher(bundleID string) *PushMockedDispatcher
func (*PushMockedDispatcher) BundleID ¶ added in v2.470.0
func (d *PushMockedDispatcher) BundleID() string
func (*PushMockedDispatcher) Debug ¶ added in v2.470.0
func (d *PushMockedDispatcher) Debug() string
func (*PushMockedDispatcher) Dispatch ¶ added in v2.470.0
func (d *PushMockedDispatcher) Dispatch(data []byte, receiver *PushServiceReceiver) error
func (*PushMockedDispatcher) Len ¶ added in v2.470.0
func (d *PushMockedDispatcher) Len(token []byte) int
func (*PushMockedDispatcher) Shift ¶ added in v2.470.0
func (d *PushMockedDispatcher) Shift(token []byte) []byte
func (*PushMockedDispatcher) TokenType ¶ added in v2.470.0
func (d *PushMockedDispatcher) TokenType() PushServiceTokenType
type PushServiceClient ¶
type PushServiceClient interface { // ServerInfo retrieves metadata about the current push service ServerInfo(ctx context.Context, in *PushServiceServerInfo_Request, opts ...grpc.CallOption) (*PushServiceServerInfo_Reply, error) // Send dispatch a push payload to one or multiple recipients Send(ctx context.Context, in *PushServiceSend_Request, opts ...grpc.CallOption) (*PushServiceSend_Reply, error) }
PushServiceClient is the client API for PushService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
PushService
func NewPushServiceClient ¶
func NewPushServiceClient(cc grpc.ClientConnInterface) PushServiceClient
type PushServiceOpaqueReceiver ¶
type PushServiceOpaqueReceiver struct { OpaqueToken []byte `protobuf:"bytes,1,opt,name=opaque_token,json=opaqueToken,proto3" json:"opaque_token,omitempty"` ServiceAddr string `protobuf:"bytes,2,opt,name=service_addr,json=serviceAddr,proto3" json:"service_addr,omitempty"` // contains filtered or unexported fields }
func (*PushServiceOpaqueReceiver) Descriptor
deprecated
func (*PushServiceOpaqueReceiver) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceOpaqueReceiver.ProtoReflect.Descriptor instead.
func (*PushServiceOpaqueReceiver) GetOpaqueToken ¶
func (x *PushServiceOpaqueReceiver) GetOpaqueToken() []byte
func (*PushServiceOpaqueReceiver) GetServiceAddr ¶
func (x *PushServiceOpaqueReceiver) GetServiceAddr() string
func (*PushServiceOpaqueReceiver) ProtoMessage ¶
func (*PushServiceOpaqueReceiver) ProtoMessage()
func (*PushServiceOpaqueReceiver) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceOpaqueReceiver) ProtoReflect() protoreflect.Message
func (*PushServiceOpaqueReceiver) Reset ¶
func (x *PushServiceOpaqueReceiver) Reset()
func (*PushServiceOpaqueReceiver) String ¶
func (x *PushServiceOpaqueReceiver) String() string
type PushServicePriority ¶
type PushServicePriority int32
const ( PushServicePriority_PushPriorityUndefined PushServicePriority = 0 PushServicePriority_PushPriorityLow PushServicePriority = 1 PushServicePriority_PushPriorityNormal PushServicePriority = 2 )
func (PushServicePriority) Descriptor ¶ added in v2.470.4
func (PushServicePriority) Descriptor() protoreflect.EnumDescriptor
func (PushServicePriority) Enum ¶ added in v2.470.4
func (x PushServicePriority) Enum() *PushServicePriority
func (PushServicePriority) EnumDescriptor
deprecated
func (PushServicePriority) EnumDescriptor() ([]byte, []int)
Deprecated: Use PushServicePriority.Descriptor instead.
func (PushServicePriority) Number ¶ added in v2.470.4
func (x PushServicePriority) Number() protoreflect.EnumNumber
func (PushServicePriority) String ¶
func (x PushServicePriority) String() string
func (PushServicePriority) Type ¶ added in v2.470.4
func (PushServicePriority) Type() protoreflect.EnumType
type PushServiceReceiver ¶ added in v2.470.0
type PushServiceReceiver struct { // token_type is the type of the token used, it allows us to act as a proxy to the appropriate push server TokenType PushServiceTokenType `` /* 129-byte string literal not displayed */ // bundle_id is the app identifier BundleId string `protobuf:"bytes,2,opt,name=bundle_id,json=bundleId,proto3" json:"bundle_id,omitempty"` // token is the device identifier used Token []byte `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // public_key is the public key which will be used to encrypt the payload RecipientPublicKey []byte `protobuf:"bytes,4,opt,name=recipient_public_key,json=recipientPublicKey,proto3" json:"recipient_public_key,omitempty"` // contains filtered or unexported fields }
func (*PushServiceReceiver) Descriptor
deprecated
added in
v2.470.0
func (*PushServiceReceiver) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceReceiver.ProtoReflect.Descriptor instead.
func (*PushServiceReceiver) GetBundleId ¶ added in v2.470.4
func (x *PushServiceReceiver) GetBundleId() string
func (*PushServiceReceiver) GetRecipientPublicKey ¶ added in v2.470.0
func (x *PushServiceReceiver) GetRecipientPublicKey() []byte
func (*PushServiceReceiver) GetToken ¶ added in v2.470.0
func (x *PushServiceReceiver) GetToken() []byte
func (*PushServiceReceiver) GetTokenType ¶ added in v2.470.0
func (x *PushServiceReceiver) GetTokenType() PushServiceTokenType
func (*PushServiceReceiver) ProtoMessage ¶ added in v2.470.0
func (*PushServiceReceiver) ProtoMessage()
func (*PushServiceReceiver) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceReceiver) ProtoReflect() protoreflect.Message
func (*PushServiceReceiver) Reset ¶ added in v2.470.0
func (x *PushServiceReceiver) Reset()
func (*PushServiceReceiver) String ¶ added in v2.470.0
func (x *PushServiceReceiver) String() string
type PushServiceSend ¶
type PushServiceSend struct {
// contains filtered or unexported fields
}
func (*PushServiceSend) Descriptor
deprecated
func (*PushServiceSend) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceSend.ProtoReflect.Descriptor instead.
func (*PushServiceSend) ProtoMessage ¶
func (*PushServiceSend) ProtoMessage()
func (*PushServiceSend) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceSend) ProtoReflect() protoreflect.Message
func (*PushServiceSend) Reset ¶
func (x *PushServiceSend) Reset()
func (*PushServiceSend) String ¶
func (x *PushServiceSend) String() string
type PushServiceSend_Reply ¶
type PushServiceSend_Reply struct {
// contains filtered or unexported fields
}
func (*PushServiceSend_Reply) Descriptor
deprecated
func (*PushServiceSend_Reply) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceSend_Reply.ProtoReflect.Descriptor instead.
func (*PushServiceSend_Reply) ProtoMessage ¶
func (*PushServiceSend_Reply) ProtoMessage()
func (*PushServiceSend_Reply) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceSend_Reply) ProtoReflect() protoreflect.Message
func (*PushServiceSend_Reply) Reset ¶
func (x *PushServiceSend_Reply) Reset()
func (*PushServiceSend_Reply) String ¶
func (x *PushServiceSend_Reply) String() string
type PushServiceSend_Request ¶
type PushServiceSend_Request struct { Envelope []byte `protobuf:"bytes,1,opt,name=envelope,proto3" json:"envelope,omitempty"` Priority PushServicePriority `protobuf:"varint,2,opt,name=priority,proto3,enum=berty.push.v1.PushServicePriority" json:"priority,omitempty"` Receivers []*PushServiceOpaqueReceiver `protobuf:"bytes,3,rep,name=receivers,proto3" json:"receivers,omitempty"` // contains filtered or unexported fields }
func (*PushServiceSend_Request) Descriptor
deprecated
func (*PushServiceSend_Request) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceSend_Request.ProtoReflect.Descriptor instead.
func (*PushServiceSend_Request) GetEnvelope ¶
func (x *PushServiceSend_Request) GetEnvelope() []byte
func (*PushServiceSend_Request) GetPriority ¶
func (x *PushServiceSend_Request) GetPriority() PushServicePriority
func (*PushServiceSend_Request) GetReceivers ¶
func (x *PushServiceSend_Request) GetReceivers() []*PushServiceOpaqueReceiver
func (*PushServiceSend_Request) ProtoMessage ¶
func (*PushServiceSend_Request) ProtoMessage()
func (*PushServiceSend_Request) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceSend_Request) ProtoReflect() protoreflect.Message
func (*PushServiceSend_Request) Reset ¶
func (x *PushServiceSend_Request) Reset()
func (*PushServiceSend_Request) String ¶
func (x *PushServiceSend_Request) String() string
type PushServiceServer ¶
type PushServiceServer interface { // ServerInfo retrieves metadata about the current push service ServerInfo(context.Context, *PushServiceServerInfo_Request) (*PushServiceServerInfo_Reply, error) // Send dispatch a push payload to one or multiple recipients Send(context.Context, *PushServiceSend_Request) (*PushServiceSend_Reply, error) // contains filtered or unexported methods }
PushServiceServer is the server API for PushService service. All implementations must embed UnimplementedPushServiceServer for forward compatibility.
PushService
type PushServiceServerInfo ¶
type PushServiceServerInfo struct {
// contains filtered or unexported fields
}
func (*PushServiceServerInfo) Descriptor
deprecated
func (*PushServiceServerInfo) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceServerInfo.ProtoReflect.Descriptor instead.
func (*PushServiceServerInfo) ProtoMessage ¶
func (*PushServiceServerInfo) ProtoMessage()
func (*PushServiceServerInfo) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceServerInfo) ProtoReflect() protoreflect.Message
func (*PushServiceServerInfo) Reset ¶
func (x *PushServiceServerInfo) Reset()
func (*PushServiceServerInfo) String ¶
func (x *PushServiceServerInfo) String() string
type PushServiceServerInfo_Reply ¶
type PushServiceServerInfo_Reply struct { // public_key the public key used to encrypt data to the server (ie. a PushServiceReceiver), // to be used with NaCl's Seal and Open PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // supported_token_types list of token types supported by the server SupportedTokenTypes []*PushServiceSupportedTokenType `protobuf:"bytes,2,rep,name=supported_token_types,json=supportedTokenTypes,proto3" json:"supported_token_types,omitempty"` // contains filtered or unexported fields }
func (*PushServiceServerInfo_Reply) Descriptor
deprecated
func (*PushServiceServerInfo_Reply) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceServerInfo_Reply.ProtoReflect.Descriptor instead.
func (*PushServiceServerInfo_Reply) GetPublicKey ¶
func (x *PushServiceServerInfo_Reply) GetPublicKey() []byte
func (*PushServiceServerInfo_Reply) GetSupportedTokenTypes ¶
func (x *PushServiceServerInfo_Reply) GetSupportedTokenTypes() []*PushServiceSupportedTokenType
func (*PushServiceServerInfo_Reply) ProtoMessage ¶
func (*PushServiceServerInfo_Reply) ProtoMessage()
func (*PushServiceServerInfo_Reply) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceServerInfo_Reply) ProtoReflect() protoreflect.Message
func (*PushServiceServerInfo_Reply) Reset ¶
func (x *PushServiceServerInfo_Reply) Reset()
func (*PushServiceServerInfo_Reply) String ¶
func (x *PushServiceServerInfo_Reply) String() string
type PushServiceServerInfo_Request ¶
type PushServiceServerInfo_Request struct {
// contains filtered or unexported fields
}
func (*PushServiceServerInfo_Request) Descriptor
deprecated
func (*PushServiceServerInfo_Request) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceServerInfo_Request.ProtoReflect.Descriptor instead.
func (*PushServiceServerInfo_Request) ProtoMessage ¶
func (*PushServiceServerInfo_Request) ProtoMessage()
func (*PushServiceServerInfo_Request) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceServerInfo_Request) ProtoReflect() protoreflect.Message
func (*PushServiceServerInfo_Request) Reset ¶
func (x *PushServiceServerInfo_Request) Reset()
func (*PushServiceServerInfo_Request) String ¶
func (x *PushServiceServerInfo_Request) String() string
type PushServiceSupportedTokenType ¶
type PushServiceSupportedTokenType struct { AppBundleId string `protobuf:"bytes,1,opt,name=app_bundle_id,json=appBundleId,proto3" json:"app_bundle_id,omitempty"` TokenType PushServiceTokenType `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PushServiceSupportedTokenType) Descriptor
deprecated
func (*PushServiceSupportedTokenType) Descriptor() ([]byte, []int)
Deprecated: Use PushServiceSupportedTokenType.ProtoReflect.Descriptor instead.
func (*PushServiceSupportedTokenType) GetAppBundleId ¶ added in v2.470.4
func (x *PushServiceSupportedTokenType) GetAppBundleId() string
func (*PushServiceSupportedTokenType) GetTokenType ¶
func (x *PushServiceSupportedTokenType) GetTokenType() PushServiceTokenType
func (*PushServiceSupportedTokenType) ProtoMessage ¶
func (*PushServiceSupportedTokenType) ProtoMessage()
func (*PushServiceSupportedTokenType) ProtoReflect ¶ added in v2.470.4
func (x *PushServiceSupportedTokenType) ProtoReflect() protoreflect.Message
func (*PushServiceSupportedTokenType) Reset ¶
func (x *PushServiceSupportedTokenType) Reset()
func (*PushServiceSupportedTokenType) String ¶
func (x *PushServiceSupportedTokenType) String() string
type PushServiceTokenType ¶
type PushServiceTokenType int32
const ( PushServiceTokenType_PushTokenUndefined PushServiceTokenType = 0 // PushTokenMQTT: Platform independent PushServiceTokenType_PushTokenMQTT PushServiceTokenType = 1 // PushTokenApplePushNotificationService: iOS, iPadOS, tvOS, macOS PushServiceTokenType_PushTokenApplePushNotificationService PushServiceTokenType = 2 // PushTokenFirebaseCloudMessaging: Android with GMS, Chrome OS PushServiceTokenType_PushTokenFirebaseCloudMessaging PushServiceTokenType = 3 // PushTokenWindowsPushNotificationService: Windows, XBox PushServiceTokenType_PushTokenWindowsPushNotificationService PushServiceTokenType = 4 // PushTokenHuaweiPushKit: Huawei Android devices with AppGallery PushServiceTokenType_PushTokenHuaweiPushKit PushServiceTokenType = 5 // PushTokenAmazonDeviceMessaging: Fire OS devices PushServiceTokenType_PushTokenAmazonDeviceMessaging PushServiceTokenType = 6 )
func (PushServiceTokenType) Descriptor ¶ added in v2.470.4
func (PushServiceTokenType) Descriptor() protoreflect.EnumDescriptor
func (PushServiceTokenType) Enum ¶ added in v2.470.4
func (x PushServiceTokenType) Enum() *PushServiceTokenType
func (PushServiceTokenType) EnumDescriptor
deprecated
func (PushServiceTokenType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PushServiceTokenType.Descriptor instead.
func (PushServiceTokenType) Number ¶ added in v2.470.4
func (x PushServiceTokenType) Number() protoreflect.EnumNumber
func (PushServiceTokenType) String ¶
func (x PushServiceTokenType) String() string
func (PushServiceTokenType) Type ¶ added in v2.470.4
func (PushServiceTokenType) Type() protoreflect.EnumType
type UnimplementedPushServiceServer ¶
type UnimplementedPushServiceServer struct{}
UnimplementedPushServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedPushServiceServer) Send ¶
func (UnimplementedPushServiceServer) Send(context.Context, *PushServiceSend_Request) (*PushServiceSend_Reply, error)
func (UnimplementedPushServiceServer) ServerInfo ¶
func (UnimplementedPushServiceServer) ServerInfo(context.Context, *PushServiceServerInfo_Request) (*PushServiceServerInfo_Reply, error)
type UnsafePushServiceServer ¶ added in v2.470.0
type UnsafePushServiceServer interface {
// contains filtered or unexported methods
}
UnsafePushServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PushServiceServer will result in compilation errors.