messengertypes

package
Version: v2.429.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0, MIT Imports: 19 Imported by: 2

Documentation

Overview

Package messengertypes is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var AppMessage_Type_name = map[int32]string{
	0:   "Undefined",
	1:   "TypeUserMessage",
	2:   "TypeUserReaction",
	3:   "TypeGroupInvitation",
	4:   "TypeSetGroupInfo",
	5:   "TypeSetUserInfo",
	6:   "TypeAcknowledge",
	7:   "TypeReplyOptions",
	100: "TypeMonitorMetadata",
}
View Source
var AppMessage_Type_value = map[string]int32{
	"Undefined":           0,
	"TypeUserMessage":     1,
	"TypeUserReaction":    2,
	"TypeGroupInvitation": 3,
	"TypeSetGroupInfo":    4,
	"TypeSetUserInfo":     5,
	"TypeAcknowledge":     6,
	"TypeReplyOptions":    7,
	"TypeMonitorMetadata": 100,
}
View Source
var BertyLink_Kind_name = map[int32]string{
	0: "UnknownKind",
	1: "ContactInviteV1Kind",
	2: "GroupV1Kind",
	3: "EncryptedV1Kind",
	4: "MessageV1Kind",
}
View Source
var BertyLink_Kind_value = map[string]int32{
	"UnknownKind":         0,
	"ContactInviteV1Kind": 1,
	"GroupV1Kind":         2,
	"EncryptedV1Kind":     3,
	"MessageV1Kind":       4,
}
View Source
var Contact_State_name = map[int32]string{
	0: "Undefined",
	1: "IncomingRequest",
	2: "OutgoingRequestEnqueued",
	3: "OutgoingRequestSent",
	4: "Accepted",
}
View Source
var Contact_State_value = map[string]int32{
	"Undefined":               0,
	"IncomingRequest":         1,
	"OutgoingRequestEnqueued": 2,
	"OutgoingRequestSent":     3,
	"Accepted":                4,
}
View Source
var Conversation_Type_name = map[int32]string{
	0: "Undefined",
	1: "AccountType",
	2: "ContactType",
	3: "MultiMemberType",
}
View Source
var Conversation_Type_value = map[string]int32{
	"Undefined":       0,
	"AccountType":     1,
	"ContactType":     2,
	"MultiMemberType": 3,
}
View Source
var MediaMetadataType_name = map[int32]string{
	0: "MetadataUnknown",
	1: "MetadataKeyValue",
	2: "MetadataAudioPreview",
}
View Source
var MediaMetadataType_value = map[string]int32{
	"MetadataUnknown":      0,
	"MetadataKeyValue":     1,
	"MetadataAudioPreview": 2,
}
View Source
var Media_State_name = map[int32]string{
	0:   "StateUnknown",
	1:   "StateNeverDownloaded",
	2:   "StatePartiallyDownloaded",
	3:   "StateDownloaded",
	4:   "StateInCache",
	5:   "StateInvalidCrypto",
	100: "StatePrepared",
	101: "StateAttached",
}
View Source
var Media_State_value = map[string]int32{
	"StateUnknown":             0,
	"StateNeverDownloaded":     1,
	"StatePartiallyDownloaded": 2,
	"StateDownloaded":          3,
	"StateInCache":             4,
	"StateInvalidCrypto":       5,
	"StatePrepared":            100,
	"StateAttached":            101,
}
View Source
var StreamEvent_Notified_Type_name = map[int32]string{
	0: "Unknown",
	1: "TypeBasic",
	2: "TypeMessageReceived",
	3: "TypeContactRequestSent",
	4: "TypeContactRequestReceived",
	5: "TypeGroupInvitation",
}
View Source
var StreamEvent_Notified_Type_value = map[string]int32{
	"Unknown":                    0,
	"TypeBasic":                  1,
	"TypeMessageReceived":        2,
	"TypeContactRequestSent":     3,
	"TypeContactRequestReceived": 4,
	"TypeGroupInvitation":        5,
}
View Source
var StreamEvent_PeerStatusConnected_Transport_name = map[int32]string{
	0: "Unknown",
	1: "LAN",
	2: "WAN",
	3: "Proximity",
}
View Source
var StreamEvent_PeerStatusConnected_Transport_value = map[string]int32{
	"Unknown":   0,
	"LAN":       1,
	"WAN":       2,
	"Proximity": 3,
}
View Source
var StreamEvent_Type_name = map[int32]string{
	0:  "Undefined",
	1:  "TypeListEnded",
	2:  "TypeConversationUpdated",
	3:  "TypeConversationDeleted",
	4:  "TypeInteractionUpdated",
	5:  "TypeInteractionDeleted",
	6:  "TypeContactUpdated",
	7:  "TypeAccountUpdated",
	8:  "TypeMemberUpdated",
	9:  "TypeDeviceUpdated",
	10: "TypeNotified",
	11: "TypeMediaUpdated",
	12: "TypeConversationPartialLoad",
	13: "TypePeerStatusConnected",
	14: "TypePeerStatusReconnecting",
	15: "TypePeerStatusDisconnected",
	16: "TypePeerStatusGroupAssociated",
}
View Source
var StreamEvent_Type_value = map[string]int32{
	"Undefined":                     0,
	"TypeListEnded":                 1,
	"TypeConversationUpdated":       2,
	"TypeConversationDeleted":       3,
	"TypeInteractionUpdated":        4,
	"TypeInteractionDeleted":        5,
	"TypeContactUpdated":            6,
	"TypeAccountUpdated":            7,
	"TypeMemberUpdated":             8,
	"TypeDeviceUpdated":             9,
	"TypeNotified":                  10,
	"TypeMediaUpdated":              11,
	"TypeConversationPartialLoad":   12,
	"TypePeerStatusConnected":       13,
	"TypePeerStatusReconnecting":    14,
	"TypePeerStatusDisconnected":    15,
	"TypePeerStatusGroupAssociated": 16,
}

Functions

func RegisterMessengerServiceHandler

func RegisterMessengerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMessengerServiceHandler registers the http handlers for service MessengerService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMessengerServiceHandlerClient

func RegisterMessengerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MessengerServiceClient) error

RegisterMessengerServiceHandlerClient registers the http handlers for service MessengerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MessengerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MessengerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MessengerServiceClient" to call the correct interceptors.

func RegisterMessengerServiceHandlerFromEndpoint

func RegisterMessengerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMessengerServiceHandlerFromEndpoint is same as RegisterMessengerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMessengerServiceHandlerServer

func RegisterMessengerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MessengerServiceServer) error

RegisterMessengerServiceHandlerServer registers the http handlers for service MessengerService to "mux". UnaryRPC :call MessengerServiceServer 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 RegisterMessengerServiceHandlerFromEndpoint instead.

func RegisterMessengerServiceServer

func RegisterMessengerServiceServer(s *grpc.Server, srv MessengerServiceServer)

Types

type Account

type Account struct {
	PublicKey                       string          `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" gorm:"primaryKey"`
	DisplayName                     string          `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Link                            string          `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
	ServiceTokens                   []*ServiceToken `` /* 128-byte string literal not displayed */
	ReplicateNewGroupsAutomatically bool            `` /* 179-byte string literal not displayed */
	AvatarCID                       string          `protobuf:"bytes,7,opt,name=avatar_cid,json=avatarCid,proto3" json:"avatar_cid,omitempty" gorm:"column:avatar_cid"`
	AutoSharePushTokenFlag          bool            `` /* 134-byte string literal not displayed */
	DevicePushToken                 []byte          `protobuf:"bytes,9,opt,name=device_push_token,json=devicePushToken,proto3" json:"device_push_token,omitempty"`
	DevicePushServer                []byte          `protobuf:"bytes,10,opt,name=device_push_server,json=devicePushServer,proto3" json:"device_push_server,omitempty"`
	MutedUntil                      int64           `protobuf:"varint,11,opt,name=muted_until,json=mutedUntil,proto3" json:"muted_until,omitempty"`
	HideInAppNotifications          bool            `` /* 133-byte string literal not displayed */
	HidePushPreviews                bool            `protobuf:"varint,13,opt,name=hide_push_previews,json=hidePushPreviews,proto3" json:"hide_push_previews,omitempty"`
}

func (*Account) Descriptor

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

func (*Account) GetAutoSharePushTokenFlag added in v2.305.0

func (m *Account) GetAutoSharePushTokenFlag() bool

func (*Account) GetAvatarCID

func (m *Account) GetAvatarCID() string

func (*Account) GetDevicePushServer added in v2.305.0

func (m *Account) GetDevicePushServer() []byte

func (*Account) GetDevicePushToken added in v2.305.0

func (m *Account) GetDevicePushToken() []byte

func (*Account) GetDisplayName

func (m *Account) GetDisplayName() string

func (*Account) GetHideInAppNotifications added in v2.381.0

func (m *Account) GetHideInAppNotifications() bool

func (*Account) GetHidePushPreviews added in v2.381.0

func (m *Account) GetHidePushPreviews() bool
func (m *Account) GetLink() string

func (*Account) GetMutedUntil added in v2.381.0

func (m *Account) GetMutedUntil() int64

func (*Account) GetPublicKey

func (m *Account) GetPublicKey() string

func (*Account) GetReplicateNewGroupsAutomatically

func (m *Account) GetReplicateNewGroupsAutomatically() bool

func (*Account) GetServiceTokens

func (m *Account) GetServiceTokens() []*ServiceToken

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

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

func (*Account) XXX_Merge

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

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

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

type AccountGet

type AccountGet struct{}

func (*AccountGet) Descriptor

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

func (*AccountGet) ProtoMessage

func (*AccountGet) ProtoMessage()

func (*AccountGet) Reset

func (m *AccountGet) Reset()

func (*AccountGet) String

func (m *AccountGet) String() string

func (*AccountGet) XXX_DiscardUnknown

func (m *AccountGet) XXX_DiscardUnknown()

func (*AccountGet) XXX_Marshal

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

func (*AccountGet) XXX_Merge

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

func (*AccountGet) XXX_Size

func (m *AccountGet) XXX_Size() int

func (*AccountGet) XXX_Unmarshal

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

type AccountGet_Reply

type AccountGet_Reply struct {
	Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

func (*AccountGet_Reply) Descriptor

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

func (*AccountGet_Reply) GetAccount

func (m *AccountGet_Reply) GetAccount() *Account

func (*AccountGet_Reply) ProtoMessage

func (*AccountGet_Reply) ProtoMessage()

func (*AccountGet_Reply) Reset

func (m *AccountGet_Reply) Reset()

func (*AccountGet_Reply) String

func (m *AccountGet_Reply) String() string

func (*AccountGet_Reply) XXX_DiscardUnknown

func (m *AccountGet_Reply) XXX_DiscardUnknown()

func (*AccountGet_Reply) XXX_Marshal

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

func (*AccountGet_Reply) XXX_Merge

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

func (*AccountGet_Reply) XXX_Size

func (m *AccountGet_Reply) XXX_Size() int

func (*AccountGet_Reply) XXX_Unmarshal

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

type AccountGet_Request

type AccountGet_Request struct{}

func (*AccountGet_Request) Descriptor

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

func (*AccountGet_Request) ProtoMessage

func (*AccountGet_Request) ProtoMessage()

func (*AccountGet_Request) Reset

func (m *AccountGet_Request) Reset()

func (*AccountGet_Request) String

func (m *AccountGet_Request) String() string

func (*AccountGet_Request) XXX_DiscardUnknown

func (m *AccountGet_Request) XXX_DiscardUnknown()

func (*AccountGet_Request) XXX_Marshal

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

func (*AccountGet_Request) XXX_Merge

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

func (*AccountGet_Request) XXX_Size

func (m *AccountGet_Request) XXX_Size() int

func (*AccountGet_Request) XXX_Unmarshal

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

type AccountPushConfigure added in v2.381.0

type AccountPushConfigure struct{}

func (*AccountPushConfigure) Descriptor added in v2.381.0

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

func (*AccountPushConfigure) ProtoMessage added in v2.381.0

func (*AccountPushConfigure) ProtoMessage()

func (*AccountPushConfigure) Reset added in v2.381.0

func (m *AccountPushConfigure) Reset()

func (*AccountPushConfigure) String added in v2.381.0

func (m *AccountPushConfigure) String() string

func (*AccountPushConfigure) XXX_DiscardUnknown added in v2.381.0

func (m *AccountPushConfigure) XXX_DiscardUnknown()

func (*AccountPushConfigure) XXX_Marshal added in v2.381.0

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

func (*AccountPushConfigure) XXX_Merge added in v2.381.0

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

func (*AccountPushConfigure) XXX_Size added in v2.381.0

func (m *AccountPushConfigure) XXX_Size() int

func (*AccountPushConfigure) XXX_Unmarshal added in v2.381.0

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

type AccountPushConfigure_Reply added in v2.381.0

type AccountPushConfigure_Reply struct{}

func (*AccountPushConfigure_Reply) Descriptor added in v2.381.0

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

func (*AccountPushConfigure_Reply) ProtoMessage added in v2.381.0

func (*AccountPushConfigure_Reply) ProtoMessage()

func (*AccountPushConfigure_Reply) Reset added in v2.381.0

func (m *AccountPushConfigure_Reply) Reset()

func (*AccountPushConfigure_Reply) String added in v2.381.0

func (m *AccountPushConfigure_Reply) String() string

func (*AccountPushConfigure_Reply) XXX_DiscardUnknown added in v2.381.0

func (m *AccountPushConfigure_Reply) XXX_DiscardUnknown()

func (*AccountPushConfigure_Reply) XXX_Marshal added in v2.381.0

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

func (*AccountPushConfigure_Reply) XXX_Merge added in v2.381.0

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

func (*AccountPushConfigure_Reply) XXX_Size added in v2.381.0

func (m *AccountPushConfigure_Reply) XXX_Size() int

func (*AccountPushConfigure_Reply) XXX_Unmarshal added in v2.381.0

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

type AccountPushConfigure_Request added in v2.381.0

type AccountPushConfigure_Request struct {
	MutedUntil             int64 `protobuf:"varint,1,opt,name=muted_until,json=mutedUntil,proto3" json:"muted_until,omitempty"`
	Unmute                 bool  `protobuf:"varint,2,opt,name=unmute,proto3" json:"unmute,omitempty"`
	MuteForever            bool  `protobuf:"varint,3,opt,name=mute_forever,json=muteForever,proto3" json:"mute_forever,omitempty"`
	HideInAppNotifications bool  `` /* 132-byte string literal not displayed */
	HidePushPreviews       bool  `protobuf:"varint,5,opt,name=hide_push_previews,json=hidePushPreviews,proto3" json:"hide_push_previews,omitempty"`
	ShowInAppNotifications bool  `` /* 132-byte string literal not displayed */
	ShowPushPreviews       bool  `protobuf:"varint,7,opt,name=show_push_previews,json=showPushPreviews,proto3" json:"show_push_previews,omitempty"`
}

func (*AccountPushConfigure_Request) Descriptor added in v2.381.0

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

func (*AccountPushConfigure_Request) GetHideInAppNotifications added in v2.381.0

func (m *AccountPushConfigure_Request) GetHideInAppNotifications() bool

func (*AccountPushConfigure_Request) GetHidePushPreviews added in v2.381.0

func (m *AccountPushConfigure_Request) GetHidePushPreviews() bool

func (*AccountPushConfigure_Request) GetMuteForever added in v2.381.0

func (m *AccountPushConfigure_Request) GetMuteForever() bool

func (*AccountPushConfigure_Request) GetMutedUntil added in v2.381.0

func (m *AccountPushConfigure_Request) GetMutedUntil() int64

func (*AccountPushConfigure_Request) GetShowInAppNotifications added in v2.381.0

func (m *AccountPushConfigure_Request) GetShowInAppNotifications() bool

func (*AccountPushConfigure_Request) GetShowPushPreviews added in v2.381.0

func (m *AccountPushConfigure_Request) GetShowPushPreviews() bool

func (*AccountPushConfigure_Request) GetUnmute added in v2.381.0

func (m *AccountPushConfigure_Request) GetUnmute() bool

func (*AccountPushConfigure_Request) ProtoMessage added in v2.381.0

func (*AccountPushConfigure_Request) ProtoMessage()

func (*AccountPushConfigure_Request) Reset added in v2.381.0

func (m *AccountPushConfigure_Request) Reset()

func (*AccountPushConfigure_Request) String added in v2.381.0

func (*AccountPushConfigure_Request) XXX_DiscardUnknown added in v2.381.0

func (m *AccountPushConfigure_Request) XXX_DiscardUnknown()

func (*AccountPushConfigure_Request) XXX_Marshal added in v2.381.0

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

func (*AccountPushConfigure_Request) XXX_Merge added in v2.381.0

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

func (*AccountPushConfigure_Request) XXX_Size added in v2.381.0

func (m *AccountPushConfigure_Request) XXX_Size() int

func (*AccountPushConfigure_Request)