bertymessenger

package
v2.76.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0, MIT Imports: 18 Imported by: 1

Documentation

Overview

Package bertymessenger contains the top-level API that uses the Berty Protocol to implement the Berty Messenger specific logic.

Index

Constants

This section is empty.

Variables

View Source
var AppMessageType_name = map[int32]string{
	0: "Undefined",
	1: "UserMessage",
	2: "UserReaction",
	3: "GroupInvitation",
	4: "SetGroupName",
	5: "Acknowledge",
}
View Source
var AppMessageType_value = map[string]int32{
	"Undefined":       0,
	"UserMessage":     1,
	"UserReaction":    2,
	"GroupInvitation": 3,
	"SetGroupName":    4,
	"Acknowledge":     5,
}
View Source
var ParseDeepLink_Kind_name = map[int32]string{
	0: "UnknownKind",
	1: "BertyID",
}
View Source
var ParseDeepLink_Kind_value = map[string]int32{
	"UnknownKind": 0,
	"BertyID":     1,
}

Functions

func RegisterMessengerServiceServer

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

Types

type AppMessageType added in v2.76.0

type AppMessageType int32
const (
	AppMessageType_Undefined       AppMessageType = 0
	AppMessageType_UserMessage     AppMessageType = 1
	AppMessageType_UserReaction    AppMessageType = 2
	AppMessageType_GroupInvitation AppMessageType = 3
	AppMessageType_SetGroupName    AppMessageType = 4
	AppMessageType_Acknowledge     AppMessageType = 5
)

func (AppMessageType) EnumDescriptor added in v2.76.0

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

func (*AppMessageType) MarshalJSON added in v2.76.0

func (x *AppMessageType) MarshalJSON() ([]byte, error)

func (AppMessageType) String added in v2.76.0

func (x AppMessageType) String() string

func (*AppMessageType) UnmarshalJSON added in v2.76.0

func (x *AppMessageType) UnmarshalJSON(bytes []byte) error

type AppMessageTyped added in v2.76.0

type AppMessageTyped struct {
	Type                 AppMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=berty.messenger.AppMessageType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*AppMessageTyped) Descriptor added in v2.76.0

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

func (*AppMessageTyped) GetType added in v2.76.0

func (m *AppMessageTyped) GetType() AppMessageType

func (*AppMessageTyped) ProtoMessage added in v2.76.0

func (*AppMessageTyped) ProtoMessage()

func (*AppMessageTyped) Reset added in v2.76.0

func (m *AppMessageTyped) Reset()

func (*AppMessageTyped) String added in v2.76.0

func (m *AppMessageTyped) String() string

func (*AppMessageTyped) XXX_DiscardUnknown added in v2.76.0

func (m *AppMessageTyped) XXX_DiscardUnknown()

func (*AppMessageTyped) XXX_Marshal added in v2.76.0

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

func (*AppMessageTyped) XXX_Merge added in v2.76.0

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

func (*AppMessageTyped) XXX_Size added in v2.76.0

func (m *AppMessageTyped) XXX_Size() int

func (*AppMessageTyped) XXX_Unmarshal added in v2.76.0

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

type BertyID added in v2.66.0

type BertyID struct {
	PublicRendezvousSeed []byte   `protobuf:"bytes,1,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"`
	AccountPK            []byte   `protobuf:"bytes,2,opt,name=account_pk,json=accountPk,proto3" json:"account_pk,omitempty"`
	DisplayName          string   `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BertyID) Descriptor added in v2.66.0

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

func (*BertyID) GetAccountPK added in v2.66.0

func (m *BertyID) GetAccountPK() []byte

func (*BertyID) GetDisplayName added in v2.66.0

func (m *BertyID) GetDisplayName() string

func (*BertyID) GetPublicRendezvousSeed added in v2.66.0

func (m *BertyID) GetPublicRendezvousSeed() []byte

func (*BertyID) ProtoMessage added in v2.66.0

func (*BertyID) ProtoMessage()

func (*BertyID) Reset added in v2.66.0

func (m *BertyID) Reset()

func (*BertyID) String added in v2.66.0

func (m *BertyID) String() string

func (*BertyID) XXX_DiscardUnknown added in v2.66.0

func (m *BertyID) XXX_DiscardUnknown()

func (*BertyID) XXX_Marshal added in v2.66.0

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

func (*BertyID) XXX_Merge added in v2.66.0

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

func (*BertyID) XXX_Size added in v2.66.0

func (m *BertyID) XXX_Size() int

func (*BertyID) XXX_Unmarshal added in v2.66.0

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

type DevShareInstanceBertyID

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

func (*DevShareInstanceBertyID) Descriptor

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

func (*DevShareInstanceBertyID) ProtoMessage

func (*DevShareInstanceBertyID) ProtoMessage()

func (*DevShareInstanceBertyID) Reset

func (m *DevShareInstanceBertyID) Reset()

func (*DevShareInstanceBertyID) String

func (m *DevShareInstanceBertyID) String() string

func (*DevShareInstanceBertyID) XXX_DiscardUnknown

func (m *DevShareInstanceBertyID) XXX_DiscardUnknown()

func (*DevShareInstanceBertyID) XXX_Marshal

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

func (*DevShareInstanceBertyID) XXX_Merge

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

func (*DevShareInstanceBertyID) XXX_Size

func (m *DevShareInstanceBertyID) XXX_Size() int

func (*DevShareInstanceBertyID) XXX_Unmarshal

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

type DevShareInstanceBertyID_Reply

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

func (*DevShareInstanceBertyID_Reply) Descriptor

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

func (*DevShareInstanceBertyID_Reply) ProtoMessage

func (*DevShareInstanceBertyID_Reply) ProtoMessage()

func (*DevShareInstanceBertyID_Reply) Reset

func (m *DevShareInstanceBertyID_Reply) Reset()

func (*DevShareInstanceBertyID_Reply) String

func (*DevShareInstanceBertyID_Reply) XXX_DiscardUnknown

func (m *DevShareInstanceBertyID_Reply) XXX_DiscardUnknown()

func (*DevShareInstanceBertyID_Reply) XXX_Marshal

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

func (*DevShareInstanceBertyID_Reply) XXX_Merge

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

func (*DevShareInstanceBertyID_Reply) XXX_Size

func (m *DevShareInstanceBertyID_Reply) XXX_Size() int

func (*DevShareInstanceBertyID_Reply) XXX_Unmarshal

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

type DevShareInstanceBertyID_Request

type DevShareInstanceBertyID_Request struct {
	// reset will regenerate a new link
	Reset_               bool     `protobuf:"varint,1,opt,name=reset,proto3" json:"reset,omitempty"`
	DisplayName          string   `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DevShareInstanceBertyID_Request) Descriptor

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

func (*DevShareInstanceBertyID_Request) GetDisplayName

func (m *DevShareInstanceBertyID_Request) GetDisplayName() string

func (*DevShareInstanceBertyID_Request) GetReset_

func (m *DevShareInstanceBertyID_Request) GetReset_() bool

func (*DevShareInstanceBertyID_Request) ProtoMessage

func (*DevShareInstanceBertyID_Request) ProtoMessage()

func (*DevShareInstanceBertyID_Request) Reset

func (*DevShareInstanceBertyID_Request) String

func (*DevShareInstanceBertyID_Request) XXX_DiscardUnknown

func (m *DevShareInstanceBertyID_Request) XXX_DiscardUnknown()

func (*DevShareInstanceBertyID_Request) XXX_Marshal

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

func (*DevShareInstanceBertyID_Request) XXX_Merge

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

func (*DevShareInstanceBertyID_Request) XXX_Size

func (m *DevShareInstanceBertyID_Request) XXX_Size() int

func (*DevShareInstanceBertyID_Request) XXX_Unmarshal

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

type InstanceShareableBertyID

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

func (*InstanceShareableBertyID) Descriptor

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

func (*InstanceShareableBertyID) ProtoMessage

func (*InstanceShareableBertyID) ProtoMessage()

func (*InstanceShareableBertyID) Reset

func (m *InstanceShareableBertyID) Reset()

func (*InstanceShareableBertyID) String

func (m *InstanceShareableBertyID) String() string

func (*InstanceShareableBertyID) XXX_DiscardUnknown

func (m *InstanceShareableBertyID) XXX_DiscardUnknown()

func (*InstanceShareableBertyID) XXX_Marshal

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

func (*InstanceShareableBertyID) XXX_Merge

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

func (*InstanceShareableBertyID) XXX_Size

func (m *InstanceShareableBertyID) XXX_Size() int

func (*InstanceShareableBertyID) XXX_Unmarshal

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

type InstanceShareableBertyID_Reply

type InstanceShareableBertyID_Reply struct {
	BertyID              *BertyID `protobuf:"bytes,1,opt,name=berty_id,json=bertyId,proto3" json:"berty_id,omitempty"`
	BertyIDPayload       string   `protobuf:"bytes,2,opt,name=berty_id_payload,json=bertyIdPayload,proto3" json:"berty_id_payload,omitempty"`
	DeepLink             string   `protobuf:"bytes,3,opt,name=deep_link,json=deepLink,proto3" json:"deep_link,omitempty"`
	HTMLURL              string   `protobuf:"bytes,4,opt,name=html_url,json=htmlUrl,proto3" json:"html_url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InstanceShareableBertyID_Reply) Descriptor

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

func (*InstanceShareableBertyID_Reply) GetBertyID

func (m *InstanceShareableBertyID_Reply) GetBertyID() *BertyID

func (*InstanceShareableBertyID_Reply) GetBertyIDPayload added in v2.66.0

func (m *InstanceShareableBertyID_Reply) GetBertyIDPayload() string
func (m *InstanceShareableBertyID_Reply) GetDeepLink() string

func (*InstanceShareableBertyID_Reply) GetHTMLURL

func (m *InstanceShareableBertyID_Reply) GetHTMLURL() string

func (*InstanceShareableBertyID_Reply) ProtoMessage

func (*InstanceShareableBertyID_Reply) ProtoMessage()

func (*InstanceShareableBertyID_Reply) Reset

func (m *InstanceShareableBertyID_Reply) Reset()

func (*InstanceShareableBertyID_Reply) String

func (*InstanceShareableBertyID_Reply) XXX_DiscardUnknown

func (m *InstanceShareableBertyID_Reply) XXX_DiscardUnknown()

func (*InstanceShareableBertyID_Reply) XXX_Marshal

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

func (*InstanceShareableBertyID_Reply) XXX_Merge

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

func (*InstanceShareableBertyID_Reply) XXX_Size

func (m *InstanceShareableBertyID_Reply) XXX_Size() int

func (*InstanceShareableBertyID_Reply) XXX_Unmarshal

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

type InstanceShareableBertyID_Request

type InstanceShareableBertyID_Request struct {
	// reset will regenerate a new link
	Reset_               bool     `protobuf:"varint,1,opt,name=reset,proto3" json:"reset,omitempty"`
	DisplayName          string   `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InstanceShareableBertyID_Request) Descriptor

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

func (*InstanceShareableBertyID_Request) GetDisplayName

func (m *InstanceShareableBertyID_Request) GetDisplayName() string

func (*InstanceShareableBertyID_Request) GetReset_

func (m *InstanceShareableBertyID_Request) GetReset_() bool

func (*InstanceShareableBertyID_Request) ProtoMessage

func (*InstanceShareableBertyID_Request) ProtoMessage()

func (*InstanceShareableBertyID_Request) Reset

func (*InstanceShareableBertyID_Request) String

func (*InstanceShareableBertyID_Request) XXX_DiscardUnknown

func (m *InstanceShareableBertyID_Request) XXX_DiscardUnknown()

func (*InstanceShareableBertyID_Request) XXX_Marshal

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

func (*InstanceShareableBertyID_Request) XXX_Merge

func (*InstanceShareableBertyID_Request) XXX_Size

func (m *InstanceShareableBertyID_Request) XXX_Size() int

func (*InstanceShareableBertyID_Request) XXX_Unmarshal

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

type MessengerServiceClient

type MessengerServiceClient interface {
	// InstanceShareableBertyID returns a Berty ID that can be shared as a string, QR code or deep link.
	InstanceShareableBertyID(ctx context.Context, in *InstanceShareableBertyID_Request, opts ...grpc.CallOption) (*InstanceShareableBertyID_Reply, error)
	// DevShareInstanceBertyID shares your Berty ID on a dev channel.
	// TODO: remove for public.
	DevShareInstanceBertyID(ctx context.Context, in *DevShareInstanceBertyID_Request, opts ...grpc.CallOption) (*DevShareInstanceBertyID_Reply, error)
	// ParseDeepLink parses a link in the form of berty://xxx or https://berty.tech/id# and returns a structure
	// that can be used to display information.
	// This action is read-only.
	ParseDeepLink(ctx context.Context, in *ParseDeepLink_Request, opts ...grpc.CallOption) (*ParseDeepLink_Reply, error)
	// SendContactRequest takes the payload received from ParseDeepLink and send a contact request using the Berty Protocol.
	SendContactRequest(ctx context.Context, in *SendContactRequest_Request, opts ...grpc.CallOption) (*SendContactRequest_Reply, error)
}

MessengerServiceClient is the client API for MessengerService service.

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

func NewMessengerServiceClient

func NewMessengerServiceClient(cc *grpc.ClientConn) MessengerServiceClient

type MessengerServiceServer

type MessengerServiceServer interface {
	// InstanceShareableBertyID returns a Berty ID that can be shared as a string, QR code or deep link.
	InstanceShareableBertyID(context.Context, *InstanceShareableBertyID_Request) (*InstanceShareableBertyID_Reply, error)
	// DevShareInstanceBertyID shares your Berty ID on a dev channel.
	// TODO: remove for public.
	DevShareInstanceBertyID(context.Context, *DevShareInstanceBertyID_Request) (*DevShareInstanceBertyID_Reply, error)
	// ParseDeepLink parses a link in the form of berty://xxx or https://berty.tech/id# and returns a structure
	// that can be used to display information.
	// This action is read-only.
	ParseDeepLink(context.Context, *ParseDeepLink_Request) (*ParseDeepLink_Reply, error)
	// SendContactRequest takes the payload received from ParseDeepLink and send a contact request using the Berty Protocol.
	SendContactRequest(context.Context, *SendContactRequest_Request) (*SendContactRequest_Reply, error)
}

MessengerServiceServer is the server API for MessengerService service.

func TestingService

func TestingService(ctx context.Context, t *testing.T, opts *TestingServiceOpts) (MessengerServiceServer, func())

type Opts

type Opts struct {
	Logger *zap.Logger
}
type ParseDeepLink struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ParseDeepLink) Descriptor added in v2.66.0

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

func (*ParseDeepLink) ProtoMessage added in v2.66.0

func (*ParseDeepLink) ProtoMessage()

func (*ParseDeepLink) Reset added in v2.66.0

func (m *ParseDeepLink) Reset()

func (*ParseDeepLink) String added in v2.66.0

func (m *ParseDeepLink) String() string

func (*ParseDeepLink) XXX_DiscardUnknown added in v2.66.0

func (m *ParseDeepLink) XXX_DiscardUnknown()

func (*ParseDeepLink) XXX_Marshal added in v2.66.0

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

func (*ParseDeepLink) XXX_Merge added in v2.66.0

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

func (*ParseDeepLink) XXX_Size added in v2.66.0

func (m *ParseDeepLink) XXX_Size() int

func (*ParseDeepLink) XXX_Unmarshal added in v2.66.0

func (m *ParseDeepLink) XXX_Unmarshal(b []byte) error
type ParseDeepLink_Kind int32
const (
	ParseDeepLink_UnknownKind ParseDeepLink_Kind = 0
	ParseDeepLink_BertyID     ParseDeepLink_Kind = 1
)
func (ParseDeepLink_Kind) EnumDescriptor() ([]byte, []int)
func (x ParseDeepLink_Kind) String() string
type ParseDeepLink_Reply struct {
	Kind                 ParseDeepLink_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=berty.messenger.ParseDeepLink_Kind" json:"kind,omitempty"`
	BertyID              *BertyID           `protobuf:"bytes,3,opt,name=berty_id,json=bertyId,proto3" json:"berty_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}
func (*ParseDeepLink_Reply) Descriptor() ([]byte, []int)
func (m *ParseDeepLink_Reply) GetBertyID() *BertyID
func (*ParseDeepLink_Reply) ProtoMessage()
func (m *ParseDeepLink_Reply) Reset()
func (m *ParseDeepLink_Reply) String() string
func (m *ParseDeepLink_Reply) XXX_DiscardUnknown()
func (m *ParseDeepLink_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *ParseDeepLink_Reply) XXX_Merge(src proto.Message)
func (m *ParseDeepLink_Reply) XXX_Size() int
func (m *ParseDeepLink_Reply) XXX_Unmarshal(b []byte) error
type ParseDeepLink_Request struct {
	Link                 string   `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}
func (*ParseDeepLink_Request) Descriptor() ([]byte, []int)
func (m *ParseDeepLink_Request) GetLink() string
func (*ParseDeepLink_Request) ProtoMessage()
func (m *ParseDeepLink_Request) Reset()
func (m *ParseDeepLink_Request) String() string
func (m *ParseDeepLink_Request) XXX_DiscardUnknown()
func (m *ParseDeepLink_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *ParseDeepLink_Request) XXX_Merge(src proto.Message)
func (m *ParseDeepLink_Request) XXX_Size() int
func (m *ParseDeepLink_Request) XXX_Unmarshal(b []byte) error

type PayloadAcknowledge added in v2.76.0

type PayloadAcknowledge struct {
	Type                 AppMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=berty.messenger.AppMessageType" json:"type,omitempty"`
	Target               string         `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*PayloadAcknowledge) Descriptor added in v2.76.0

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

func (*PayloadAcknowledge) GetTarget added in v2.76.0

func (m *PayloadAcknowledge) GetTarget() string

func (*PayloadAcknowledge) GetType added in v2.76.0

func (m *PayloadAcknowledge) GetType() AppMessageType

func (*PayloadAcknowledge) ProtoMessage added in v2.76.0

func (*PayloadAcknowledge) ProtoMessage()

func (*PayloadAcknowledge) Reset added in v2.76.0

func (m *PayloadAcknowledge) Reset()

func (*PayloadAcknowledge) String added in v2.76.0

func (m *PayloadAcknowledge) String() string

func (*PayloadAcknowledge) XXX_DiscardUnknown added in v2.76.0

func (m *PayloadAcknowledge) XXX_DiscardUnknown()

func (*PayloadAcknowledge) XXX_Marshal added in v2.76.0

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

func (*PayloadAcknowledge) XXX_Merge added in v2.76.0

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

func (*PayloadAcknowledge) XXX_Size added in v2.76.0

func (m *PayloadAcknowledge) XXX_Size() int

func (*PayloadAcknowledge) XXX_Unmarshal added in v2.76.0

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

type PayloadGroupInvitation added in v2.76.0

type PayloadGroupInvitation struct {
	Type                 AppMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=berty.messenger.AppMessageType" json:"type,omitempty"`
	GroupPk              string         `protobuf:"bytes,2,opt,name=group_pk,json=groupPk,proto3" json:"groupPk"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*PayloadGroupInvitation) Descriptor added in v2.76.0

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

func (*PayloadGroupInvitation) GetGroupPk added in v2.76.0

func (m *PayloadGroupInvitation) GetGroupPk() string

func (*PayloadGroupInvitation) GetType added in v2.76.0

func (*PayloadGroupInvitation) ProtoMessage added in v2.76.0

func (*PayloadGroupInvitation) ProtoMessage()

func (*PayloadGroupInvitation) Reset added in v2.76.0

func (m *PayloadGroupInvitation) Reset()

func (*PayloadGroupInvitation) String added in v2.76.0

func (m *PayloadGroupInvitation) String() string

func (*PayloadGroupInvitation) XXX_DiscardUnknown added in v2.76.0

func (m *PayloadGroupInvitation) XXX_DiscardUnknown()

func (*PayloadGroupInvitation) XXX_Marshal added in v2.76.0

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

func (*PayloadGroupInvitation) XXX_Merge added in v2.76.0

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

func (*PayloadGroupInvitation) XXX_Size added in v2.76.0

func (m *PayloadGroupInvitation) XXX_Size() int

func (*PayloadGroupInvitation) XXX_Unmarshal added in v2.76.0

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

type PayloadSetGroupName added in v2.76.0

type PayloadSetGroupName struct {
	Type                 AppMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=berty.messenger.AppMessageType" json:"type,omitempty"`
	Name                 string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*PayloadSetGroupName) Descriptor added in v2.76.0

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

func (*PayloadSetGroupName) GetName added in v2.76.0

func (m *PayloadSetGroupName) GetName() string

func (*PayloadSetGroupName) GetType added in v2.76.0

func (m *PayloadSetGroupName) GetType() AppMessageType

func (*PayloadSetGroupName) ProtoMessage added in v2.76.0

func (*PayloadSetGroupName) ProtoMessage()

func (*PayloadSetGroupName) Reset added in v2.76.0

func (m *PayloadSetGroupName) Reset()

func (*PayloadSetGroupName) String added in v2.76.0

func (m *PayloadSetGroupName) String() string

func (*PayloadSetGroupName) XXX_DiscardUnknown added in v2.76.0

func (m *PayloadSetGroupName) XXX_DiscardUnknown()

func (*PayloadSetGroupName) XXX_Marshal added in v2.76.0

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

func (*PayloadSetGroupName) XXX_Merge added in v2.76.0

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

func (*PayloadSetGroupName) XXX_Size added in v2.76.0

func (m *PayloadSetGroupName) XXX_Size() int

func (*PayloadSetGroupName) XXX_Unmarshal added in v2.76.0

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

type PayloadUserMessage added in v2.76.0

type PayloadUserMessage struct {
	Type                 AppMessageType           `protobuf:"varint,1,opt,name=type,proto3,enum=berty.messenger.AppMessageType" json:"type,omitempty"`
	Body                 string                   `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	Attachments          []*UserMessageAttachment `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
	SentDate             int64                    `protobuf:"varint,4,opt,name=sent_date,json=sentDate,proto3" json:"sentDate"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*PayloadUserMessage) Descriptor added in v2.76.0

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

func (*PayloadUserMessage) GetAttachments added in v2.76.0

func (m *PayloadUserMessage) GetAttachments() []*UserMessageAttachment

func (*PayloadUserMessage) GetBody added in v2.76.0

func (m *PayloadUserMessage) GetBody() string

func (*PayloadUserMessage) GetSentDate added in v2.76.0

func (m *PayloadUserMessage) GetSentDate() int64

func (*PayloadUserMessage) GetType added in v2.76.0

func (m *PayloadUserMessage) GetType() AppMessageType

func (*PayloadUserMessage) ProtoMessage added in v2.76.0

func (*PayloadUserMessage) ProtoMessage()

func (*PayloadUserMessage) Reset added in v2.76.0

func (m *PayloadUserMessage) Reset()

func (*PayloadUserMessage) String added in v2.76.0

func (m *PayloadUserMessage) String() string

func (*PayloadUserMessage) XXX_DiscardUnknown added in v2.76.0

func (m *PayloadUserMessage) XXX_DiscardUnknown()

func (*PayloadUserMessage) XXX_Marshal added in v2.76.0

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

func (*PayloadUserMessage) XXX_Merge added in v2.76.0

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

func (*PayloadUserMessage) XXX_Size added in v2.76.0

func (m *PayloadUserMessage) XXX_Size() int

func (*PayloadUserMessage) XXX_Unmarshal added in v2.76.0

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

type PayloadUserReaction added in v2.76.0

type PayloadUserReaction struct {
	Type                 AppMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=berty.messenger.AppMessageType" json:"type,omitempty"`
	Emoji                string         `protobuf:"bytes,2,opt,name=emoji,proto3" json:"emoji,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*PayloadUserReaction) Descriptor added in v2.76.0

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

func (*PayloadUserReaction) GetEmoji added in v2.76.0

func (m *PayloadUserReaction) GetEmoji() string

func (*PayloadUserReaction) GetType added in v2.76.0

func (m *PayloadUserReaction) GetType() AppMessageType

func (*PayloadUserReaction) ProtoMessage added in v2.76.0

func (*PayloadUserReaction) ProtoMessage()

func (*PayloadUserReaction) Reset added in v2.76.0

func (m *PayloadUserReaction) Reset()

func (*PayloadUserReaction) String added in v2.76.0

func (m *PayloadUserReaction) String() string

func (*PayloadUserReaction) XXX_DiscardUnknown added in v2.76.0

func (m *PayloadUserReaction) XXX_DiscardUnknown()

func (*PayloadUserReaction) XXX_Marshal added in v2.76.0

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

func (*PayloadUserReaction) XXX_Merge added in v2.76.0

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

func (*PayloadUserReaction) XXX_Size added in v2.76.0

func (m *PayloadUserReaction) XXX_Size() int

func (*PayloadUserReaction) XXX_Unmarshal added in v2.76.0

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

type SendContactRequest added in v2.66.0

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

func (*SendContactRequest) Descriptor added in v2.66.0

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

func (*SendContactRequest) ProtoMessage added in v2.66.0

func (*SendContactRequest) ProtoMessage()

func (*SendContactRequest) Reset added in v2.66.0

func (m *SendContactRequest) Reset()

func (*SendContactRequest) String added in v2.66.0

func (m *SendContactRequest) String() string

func (*SendContactRequest) XXX_DiscardUnknown added in v2.66.0

func (m *SendContactRequest) XXX_DiscardUnknown()

func (*SendContactRequest) XXX_Marshal added in v2.66.0

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

func (*SendContactRequest) XXX_Merge added in v2.66.0

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

func (*SendContactRequest) XXX_Size added in v2.66.0

func (m *SendContactRequest) XXX_Size() int

func (*SendContactRequest) XXX_Unmarshal added in v2.66.0

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

type SendContactRequest_Reply added in v2.66.0

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

func (*SendContactRequest_Reply) Descriptor added in v2.66.0

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

func (*SendContactRequest_Reply) ProtoMessage added in v2.66.0

func (*SendContactRequest_Reply) ProtoMessage()

func (*SendContactRequest_Reply) Reset added in v2.66.0

func (m *SendContactRequest_Reply) Reset()

func (*SendContactRequest_Reply) String added in v2.66.0

func (m *SendContactRequest_Reply) String() string

func (*SendContactRequest_Reply) XXX_DiscardUnknown added in v2.66.0

func (m *SendContactRequest_Reply) XXX_DiscardUnknown()

func (*SendContactRequest_Reply) XXX_Marshal added in v2.66.0

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

func (*SendContactRequest_Reply) XXX_Merge added in v2.66.0

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

func (*SendContactRequest_Reply) XXX_Size added in v2.66.0

func (m *SendContactRequest_Reply) XXX_Size() int

func (*SendContactRequest_Reply) XXX_Unmarshal added in v2.66.0

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

type SendContactRequest_Request added in v2.66.0

type SendContactRequest_Request struct {
	BertyID              *BertyID `protobuf:"bytes,1,opt,name=berty_id,json=bertyId,proto3" json:"berty_id,omitempty"`
	Metadata             []byte   `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	OwnMetadata          []byte   `protobuf:"bytes,3,opt,name=own_metadata,json=ownMetadata,proto3" json:"own_metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendContactRequest_Request) Descriptor added in v2.66.0

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

func (*SendContactRequest_Request) GetBertyID added in v2.66.0

func (m *SendContactRequest_Request) GetBertyID() *BertyID

func (*SendContactRequest_Request) GetMetadata added in v2.66.0

func (m *SendContactRequest_Request) GetMetadata() []byte

func (*SendContactRequest_Request) GetOwnMetadata added in v2.72.1

func (m *SendContactRequest_Request) GetOwnMetadata() []byte

func (*SendContactRequest_Request) ProtoMessage added in v2.66.0

func (*SendContactRequest_Request) ProtoMessage()

func (*SendContactRequest_Request) Reset added in v2.66.0

func (m *SendContactRequest_Request) Reset()

func (*SendContactRequest_Request) String added in v2.66.0

func (m *SendContactRequest_Request) String() string

func (*SendContactRequest_Request) XXX_DiscardUnknown added in v2.66.0

func (m *SendContactRequest_Request) XXX_DiscardUnknown()

func (*SendContactRequest_Request) XXX_Marshal added in v2.66.0

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

func (*SendContactRequest_Request) XXX_Merge added in v2.66.0

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

func (*SendContactRequest_Request) XXX_Size added in v2.66.0

func (m *SendContactRequest_Request) XXX_Size() int

func (*SendContactRequest_Request) XXX_Unmarshal added in v2.66.0

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

type TestingServiceOpts

type TestingServiceOpts struct {
	Logger *zap.Logger
	Client bertyprotocol.Client
}

type UnimplementedMessengerServiceServer

type UnimplementedMessengerServiceServer struct {
}

UnimplementedMessengerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMessengerServiceServer) DevShareInstanceBertyID

func (*UnimplementedMessengerServiceServer) InstanceShareableBertyID

func (*UnimplementedMessengerServiceServer) SendContactRequest added in v2.66.0

type UserMessageAttachment added in v2.76.0

type UserMessageAttachment struct {
	Type                 AppMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=berty.messenger.AppMessageType" json:"type,omitempty"`
	Uri                  string         `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*UserMessageAttachment) Descriptor added in v2.76.0

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

func (*UserMessageAttachment) GetType added in v2.76.0

func (*UserMessageAttachment) GetUri added in v2.76.0

func (m *UserMessageAttachment) GetUri() string

func (*UserMessageAttachment) ProtoMessage added in v2.76.0

func (*UserMessageAttachment) ProtoMessage()

func (*UserMessageAttachment) Reset added in v2.76.0

func (m *UserMessageAttachment) Reset()

func (*UserMessageAttachment) String added in v2.76.0

func (m *UserMessageAttachment) String() string

func (*UserMessageAttachment) XXX_DiscardUnknown added in v2.76.0

func (m *UserMessageAttachment) XXX_DiscardUnknown()

func (*UserMessageAttachment) XXX_Marshal added in v2.76.0

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

func (*UserMessageAttachment) XXX_Merge added in v2.76.0

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

func (*UserMessageAttachment) XXX_Size added in v2.76.0

func (m *UserMessageAttachment) XXX_Size() int

func (*UserMessageAttachment) XXX_Unmarshal added in v2.76.0

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

Jump to

Keyboard shortcuts

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