Documentation ¶
Overview ¶
Package gen is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMessagingHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMessagingHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MessagingClient) error
- func RegisterMessagingHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMessagingHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MessagingServer) error
- func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)
- type DeleteGroupMessageRequest
- func (*DeleteGroupMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGroupMessageRequest) GetGroupId() string
- func (*DeleteGroupMessageRequest) ProtoMessage()
- func (x *DeleteGroupMessageRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGroupMessageRequest) Reset()
- func (x *DeleteGroupMessageRequest) String() string
- type DeleteGroupMessageResponse
- type DeleteMessageRequest
- func (*DeleteMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMessageRequest) GetId() string
- func (*DeleteMessageRequest) ProtoMessage()
- func (x *DeleteMessageRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMessageRequest) Reset()
- func (x *DeleteMessageRequest) String() string
- type DeleteMessageResponse
- type GetMessageListRequest
- func (*GetMessageListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMessageListRequest) GetId() string
- func (x *GetMessageListRequest) GetType() string
- func (*GetMessageListRequest) ProtoMessage()
- func (x *GetMessageListRequest) ProtoReflect() protoreflect.Message
- func (x *GetMessageListRequest) Reset()
- func (x *GetMessageListRequest) String() string
- type GetMessageListResponse
- func (*GetMessageListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMessageListResponse) GetMessages() []*Message
- func (*GetMessageListResponse) ProtoMessage()
- func (x *GetMessageListResponse) ProtoReflect() protoreflect.Message
- func (x *GetMessageListResponse) Reset()
- func (x *GetMessageListResponse) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetData() string
- func (x *Message) GetEvents() []*MessageEvent
- func (x *Message) GetGroupId() string
- func (x *Message) GetId() string
- func (x *Message) GetRecipients() []string
- func (x *Message) GetTransport() string
- func (x *Message) GetType() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageEvent
- func (*MessageEvent) Descriptor() ([]byte, []int)deprecated
- func (x *MessageEvent) GetDID() string
- func (x *MessageEvent) GetEventTime() *timestamppb.Timestamp
- func (x *MessageEvent) GetId() string
- func (x *MessageEvent) GetMessageId() string
- func (x *MessageEvent) GetType() string
- func (*MessageEvent) ProtoMessage()
- func (x *MessageEvent) ProtoReflect() protoreflect.Message
- func (x *MessageEvent) Reset()
- func (x *MessageEvent) String() string
- type MessageSettings
- type MessagingClient
- type MessagingServer
- type SaveMessageV2Request
- func (*SaveMessageV2Request) Descriptor() ([]byte, []int)deprecated
- func (x *SaveMessageV2Request) GetBody() string
- func (x *SaveMessageV2Request) GetDid() string
- func (x *SaveMessageV2Request) GetFrom() string
- func (x *SaveMessageV2Request) GetGroupId() string
- func (x *SaveMessageV2Request) GetRecipientList() []string
- func (x *SaveMessageV2Request) GetReplyToId() string
- func (x *SaveMessageV2Request) GetType() string
- func (*SaveMessageV2Request) ProtoMessage()
- func (x *SaveMessageV2Request) ProtoReflect() protoreflect.Message
- func (x *SaveMessageV2Request) Reset()
- func (x *SaveMessageV2Request) String() string
- type SaveMessageV2Response
- func (*SaveMessageV2Response) Descriptor() ([]byte, []int)deprecated
- func (x *SaveMessageV2Response) GetId() string
- func (*SaveMessageV2Response) ProtoMessage()
- func (x *SaveMessageV2Response) ProtoReflect() protoreflect.Message
- func (x *SaveMessageV2Response) Reset()
- func (x *SaveMessageV2Response) String() string
- type SendMessageRequest
- func (*SendMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageRequest) GetAmount() int64
- func (x *SendMessageRequest) GetDid() string
- func (x *SendMessageRequest) GetMsg() string
- func (x *SendMessageRequest) GetReplyToId() string
- func (*SendMessageRequest) ProtoMessage()
- func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
- func (x *SendMessageRequest) Reset()
- func (x *SendMessageRequest) String() string
- type SendMessageResponse
- func (*SendMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageResponse) GetId() string
- func (*SendMessageResponse) ProtoMessage()
- func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
- func (x *SendMessageResponse) Reset()
- func (x *SendMessageResponse) String() string
- type SendMessageV2Request
- func (*SendMessageV2Request) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageV2Request) GetAmount() int64
- func (x *SendMessageV2Request) GetBody() string
- func (x *SendMessageV2Request) GetDid() string
- func (x *SendMessageV2Request) GetGroupId() string
- func (x *SendMessageV2Request) GetMessageSettings() *MessageSettings
- func (x *SendMessageV2Request) GetRecipientList() []string
- func (x *SendMessageV2Request) GetReplyToId() string
- func (x *SendMessageV2Request) GetType() string
- func (*SendMessageV2Request) ProtoMessage()
- func (x *SendMessageV2Request) ProtoReflect() protoreflect.Message
- func (x *SendMessageV2Request) Reset()
- func (x *SendMessageV2Request) String() string
- type SendMessageV2Response
- func (*SendMessageV2Response) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageV2Response) GetId() string
- func (*SendMessageV2Response) ProtoMessage()
- func (x *SendMessageV2Response) ProtoReflect() protoreflect.Message
- func (x *SendMessageV2Response) Reset()
- func (x *SendMessageV2Response) String() string
- type UnimplementedMessagingServer
- func (UnimplementedMessagingServer) DeleteGroupMessage(context.Context, *DeleteGroupMessageRequest) (*DeleteGroupMessageResponse, error)
- func (UnimplementedMessagingServer) DeleteMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageResponse, error)
- func (UnimplementedMessagingServer) GetMessageList(context.Context, *GetMessageListRequest) (*GetMessageListResponse, error)
- func (UnimplementedMessagingServer) SaveMessageV2(context.Context, *SaveMessageV2Request) (*SaveMessageV2Response, error)
- func (UnimplementedMessagingServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
- func (UnimplementedMessagingServer) SendMessageV2(context.Context, *SendMessageV2Request) (*SendMessageV2Response, error)
- type UnsafeMessagingServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_imp_api_messaging_messaging_proto protoreflect.FileDescriptor
var Messaging_ServiceDesc = grpc.ServiceDesc{ ServiceName: "messaging.Messaging", HandlerType: (*MessagingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendMessage", Handler: _Messaging_SendMessage_Handler, }, { MethodName: "SendMessageV2", Handler: _Messaging_SendMessageV2_Handler, }, { MethodName: "SaveMessageV2", Handler: _Messaging_SaveMessageV2_Handler, }, { MethodName: "GetMessageList", Handler: _Messaging_GetMessageList_Handler, }, { MethodName: "DeleteMessage", Handler: _Messaging_DeleteMessage_Handler, }, { MethodName: "DeleteGroupMessage", Handler: _Messaging_DeleteGroupMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/imp/api/messaging/messaging.proto", }
Messaging_ServiceDesc is the grpc.ServiceDesc for Messaging service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMessagingHandler ¶
func RegisterMessagingHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMessagingHandler registers the http handlers for service Messaging to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMessagingHandlerClient ¶
func RegisterMessagingHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MessagingClient) error
RegisterMessagingHandlerClient registers the http handlers for service Messaging to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MessagingClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MessagingClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MessagingClient" to call the correct interceptors.
func RegisterMessagingHandlerFromEndpoint ¶
func RegisterMessagingHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMessagingHandlerFromEndpoint is same as RegisterMessagingHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMessagingHandlerServer ¶
func RegisterMessagingHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MessagingServer) error
RegisterMessagingHandlerServer registers the http handlers for service Messaging to "mux". UnaryRPC :call MessagingServer 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 RegisterMessagingHandlerFromEndpoint instead.
func RegisterMessagingServer ¶
func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)
Types ¶
type DeleteGroupMessageRequest ¶
type DeleteGroupMessageRequest struct { GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The group ID of the messages to delete // contains filtered or unexported fields }
* Represents a request to delete a group message.
func (*DeleteGroupMessageRequest) Descriptor
deprecated
func (*DeleteGroupMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupMessageRequest.ProtoReflect.Descriptor instead.
func (*DeleteGroupMessageRequest) GetGroupId ¶
func (x *DeleteGroupMessageRequest) GetGroupId() string
func (*DeleteGroupMessageRequest) ProtoMessage ¶
func (*DeleteGroupMessageRequest) ProtoMessage()
func (*DeleteGroupMessageRequest) ProtoReflect ¶
func (x *DeleteGroupMessageRequest) ProtoReflect() protoreflect.Message
func (*DeleteGroupMessageRequest) Reset ¶
func (x *DeleteGroupMessageRequest) Reset()
func (*DeleteGroupMessageRequest) String ¶
func (x *DeleteGroupMessageRequest) String() string
type DeleteGroupMessageResponse ¶
type DeleteGroupMessageResponse struct {
// contains filtered or unexported fields
}
* Represents a response containing the message deletion event.
func (*DeleteGroupMessageResponse) Descriptor
deprecated
func (*DeleteGroupMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupMessageResponse.ProtoReflect.Descriptor instead.
func (*DeleteGroupMessageResponse) ProtoMessage ¶
func (*DeleteGroupMessageResponse) ProtoMessage()
func (*DeleteGroupMessageResponse) ProtoReflect ¶
func (x *DeleteGroupMessageResponse) ProtoReflect() protoreflect.Message
func (*DeleteGroupMessageResponse) Reset ¶
func (x *DeleteGroupMessageResponse) Reset()
func (*DeleteGroupMessageResponse) String ¶
func (x *DeleteGroupMessageResponse) String() string
type DeleteMessageRequest ¶
type DeleteMessageRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the message to delete // contains filtered or unexported fields }
* Represents a request to delete a message.
func (*DeleteMessageRequest) Descriptor
deprecated
func (*DeleteMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMessageRequest.ProtoReflect.Descriptor instead.
func (*DeleteMessageRequest) GetId ¶
func (x *DeleteMessageRequest) GetId() string
func (*DeleteMessageRequest) ProtoMessage ¶
func (*DeleteMessageRequest) ProtoMessage()
func (*DeleteMessageRequest) ProtoReflect ¶
func (x *DeleteMessageRequest) ProtoReflect() protoreflect.Message
func (*DeleteMessageRequest) Reset ¶
func (x *DeleteMessageRequest) Reset()
func (*DeleteMessageRequest) String ¶
func (x *DeleteMessageRequest) String() string
type DeleteMessageResponse ¶
type DeleteMessageResponse struct {
// contains filtered or unexported fields
}
* Represents a response containing the message deletion event.
func (*DeleteMessageResponse) Descriptor
deprecated
func (*DeleteMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMessageResponse.ProtoReflect.Descriptor instead.
func (*DeleteMessageResponse) ProtoMessage ¶
func (*DeleteMessageResponse) ProtoMessage()
func (*DeleteMessageResponse) ProtoReflect ¶
func (x *DeleteMessageResponse) ProtoReflect() protoreflect.Message
func (*DeleteMessageResponse) Reset ¶
func (x *DeleteMessageResponse) Reset()
func (*DeleteMessageResponse) String ¶
func (x *DeleteMessageResponse) String() string
type GetMessageListRequest ¶
type GetMessageListRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the message Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // The type of the message // contains filtered or unexported fields }
* Represents a message get a message list
func (*GetMessageListRequest) Descriptor
deprecated
func (*GetMessageListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMessageListRequest.ProtoReflect.Descriptor instead.
func (*GetMessageListRequest) GetId ¶
func (x *GetMessageListRequest) GetId() string
func (*GetMessageListRequest) GetType ¶
func (x *GetMessageListRequest) GetType() string
func (*GetMessageListRequest) ProtoMessage ¶
func (*GetMessageListRequest) ProtoMessage()
func (*GetMessageListRequest) ProtoReflect ¶
func (x *GetMessageListRequest) ProtoReflect() protoreflect.Message
func (*GetMessageListRequest) Reset ¶
func (x *GetMessageListRequest) Reset()
func (*GetMessageListRequest) String ¶
func (x *GetMessageListRequest) String() string
type GetMessageListResponse ¶
type GetMessageListResponse struct { Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // The message list // contains filtered or unexported fields }
* Represents a response back containing a message list
func (*GetMessageListResponse) Descriptor
deprecated
func (*GetMessageListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMessageListResponse.ProtoReflect.Descriptor instead.
func (*GetMessageListResponse) GetMessages ¶
func (x *GetMessageListResponse) GetMessages() []*Message
func (*GetMessageListResponse) ProtoMessage ¶
func (*GetMessageListResponse) ProtoMessage()
func (*GetMessageListResponse) ProtoReflect ¶
func (x *GetMessageListResponse) ProtoReflect() protoreflect.Message
func (*GetMessageListResponse) Reset ¶
func (x *GetMessageListResponse) Reset()
func (*GetMessageListResponse) String ¶
func (x *GetMessageListResponse) String() string
type Message ¶
type Message struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the message Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // The DIDComm type of message Recipients []string `protobuf:"bytes,3,rep,name=recipients,proto3" json:"recipients,omitempty"` // The recipients the message is for Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // The JSON encoded DIDComm data message Transport string `protobuf:"bytes,5,opt,name=transport,proto3" json:"transport,omitempty"` // The transport type (https/lightning) GroupId string `protobuf:"bytes,6,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The group id for the recipients Events []*MessageEvent `protobuf:"bytes,7,rep,name=events,proto3" json:"events,omitempty"` // The events for the message // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetEvents ¶
func (x *Message) GetEvents() []*MessageEvent
func (*Message) GetGroupId ¶
func (*Message) GetRecipients ¶
func (*Message) GetTransport ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageEvent ¶
type MessageEvent struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The ID of the message event MessageId string `protobuf:"bytes,2,opt,name=MessageId,proto3" json:"MessageId,omitempty"` // The ID of the message this event represents DID string `protobuf:"bytes,3,opt,name=DID,proto3" json:"DID,omitempty"` // The ID of the message this event represents Type string `protobuf:"bytes,4,opt,name=Type,proto3" json:"Type,omitempty"` // The ID of the message this event represents EventTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=EventTime,proto3" json:"EventTime,omitempty"` // The time the event took place // contains filtered or unexported fields }
func (*MessageEvent) Descriptor
deprecated
func (*MessageEvent) Descriptor() ([]byte, []int)
Deprecated: Use MessageEvent.ProtoReflect.Descriptor instead.
func (*MessageEvent) GetDID ¶
func (x *MessageEvent) GetDID() string
func (*MessageEvent) GetEventTime ¶
func (x *MessageEvent) GetEventTime() *timestamppb.Timestamp
func (*MessageEvent) GetId ¶
func (x *MessageEvent) GetId() string
func (*MessageEvent) GetMessageId ¶
func (x *MessageEvent) GetMessageId() string
func (*MessageEvent) GetType ¶
func (x *MessageEvent) GetType() string
func (*MessageEvent) ProtoMessage ¶
func (*MessageEvent) ProtoMessage()
func (*MessageEvent) ProtoReflect ¶
func (x *MessageEvent) ProtoReflect() protoreflect.Message
func (*MessageEvent) Reset ¶
func (x *MessageEvent) Reset()
func (*MessageEvent) String ¶
func (x *MessageEvent) String() string
type MessageSettings ¶
type MessageSettings struct { ProtocolPreferences []string `protobuf:"bytes,1,rep,name=protocol_preferences,json=protocolPreferences,proto3" json:"protocol_preferences,omitempty"` // ordered list of protocol preferences to send messages down // contains filtered or unexported fields }
* Represents the preferences for sending messages
func (*MessageSettings) Descriptor
deprecated
func (*MessageSettings) Descriptor() ([]byte, []int)
Deprecated: Use MessageSettings.ProtoReflect.Descriptor instead.
func (*MessageSettings) GetProtocolPreferences ¶
func (x *MessageSettings) GetProtocolPreferences() []string
func (*MessageSettings) ProtoMessage ¶
func (*MessageSettings) ProtoMessage()
func (*MessageSettings) ProtoReflect ¶
func (x *MessageSettings) ProtoReflect() protoreflect.Message
func (*MessageSettings) Reset ¶
func (x *MessageSettings) Reset()
func (*MessageSettings) String ¶
func (x *MessageSettings) String() string
type MessagingClient ¶
type MessagingClient interface { //* // SendMessage sends a text message to another node. SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*SendMessageResponse, error) //* // SendMessageV2 sends a byte-encoded json DIDComm message to another DID. SendMessageV2(ctx context.Context, in *SendMessageV2Request, opts ...grpc.CallOption) (*SendMessageV2Response, error) //* // SaveMessageV2 saves a byte-encoded json DIDComm message locally. SaveMessageV2(ctx context.Context, in *SaveMessageV2Request, opts ...grpc.CallOption) (*SaveMessageV2Response, error) //* // GetMessageList gets messages from the daemon. GetMessageList(ctx context.Context, in *GetMessageListRequest, opts ...grpc.CallOption) (*GetMessageListResponse, error) //* // DeleteMessage will delete a specific message. DeleteMessage(ctx context.Context, in *DeleteMessageRequest, opts ...grpc.CallOption) (*DeleteMessageResponse, error) //* // DeleteGroupMessage will delete all messages from the same group. DeleteGroupMessage(ctx context.Context, in *DeleteGroupMessageRequest, opts ...grpc.CallOption) (*DeleteGroupMessageResponse, error) }
MessagingClient is the client API for Messaging 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.
func NewMessagingClient ¶
func NewMessagingClient(cc grpc.ClientConnInterface) MessagingClient
type MessagingServer ¶
type MessagingServer interface { //* // SendMessage sends a text message to another node. SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error) //* // SendMessageV2 sends a byte-encoded json DIDComm message to another DID. SendMessageV2(context.Context, *SendMessageV2Request) (*SendMessageV2Response, error) //* // SaveMessageV2 saves a byte-encoded json DIDComm message locally. SaveMessageV2(context.Context, *SaveMessageV2Request) (*SaveMessageV2Response, error) //* // GetMessageList gets messages from the daemon. GetMessageList(context.Context, *GetMessageListRequest) (*GetMessageListResponse, error) //* // DeleteMessage will delete a specific message. DeleteMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageResponse, error) //* // DeleteGroupMessage will delete all messages from the same group. DeleteGroupMessage(context.Context, *DeleteGroupMessageRequest) (*DeleteGroupMessageResponse, error) // contains filtered or unexported methods }
MessagingServer is the server API for Messaging service. All implementations must embed UnimplementedMessagingServer for forward compatibility
type SaveMessageV2Request ¶
type SaveMessageV2Request struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // the body of the DIDcomm message, json structure depends on `type` field. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // the type of the DIDcomm message, will determine body json structure Did string `protobuf:"bytes,3,opt,name=did,proto3" json:"did,omitempty"` // The DID this message sent to. It may be the user's if it was received (instead of sent) out of band. Deprecated for `recipient_list` / `group_id`. From string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` // The DID this sent from. It may be the other DID if it was received out of band. ReplyToId string `protobuf:"bytes,5,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"` // Optional ID of the message that this message is replying to. RecipientList []string `protobuf:"bytes,7,rep,name=recipient_list,json=recipientList,proto3" json:"recipient_list,omitempty"` // The list of recipient dids the message sent from. Cannot use with `group_id` / `did` parameters. GroupId string `protobuf:"bytes,8,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The `group_id` the message sent from. Cannot use with `recipient_list` or `did` parameters. // contains filtered or unexported fields }
* Represents a message to save locally. Useful if it was sent out of band.
func (*SaveMessageV2Request) Descriptor
deprecated
func (*SaveMessageV2Request) Descriptor() ([]byte, []int)
Deprecated: Use SaveMessageV2Request.ProtoReflect.Descriptor instead.
func (*SaveMessageV2Request) GetBody ¶
func (x *SaveMessageV2Request) GetBody() string
func (*SaveMessageV2Request) GetDid ¶
func (x *SaveMessageV2Request) GetDid() string
func (*SaveMessageV2Request) GetFrom ¶
func (x *SaveMessageV2Request) GetFrom() string
func (*SaveMessageV2Request) GetGroupId ¶
func (x *SaveMessageV2Request) GetGroupId() string
func (*SaveMessageV2Request) GetRecipientList ¶
func (x *SaveMessageV2Request) GetRecipientList() []string
func (*SaveMessageV2Request) GetReplyToId ¶
func (x *SaveMessageV2Request) GetReplyToId() string
func (*SaveMessageV2Request) GetType ¶
func (x *SaveMessageV2Request) GetType() string
func (*SaveMessageV2Request) ProtoMessage ¶
func (*SaveMessageV2Request) ProtoMessage()
func (*SaveMessageV2Request) ProtoReflect ¶
func (x *SaveMessageV2Request) ProtoReflect() protoreflect.Message
func (*SaveMessageV2Request) Reset ¶
func (x *SaveMessageV2Request) Reset()
func (*SaveMessageV2Request) String ¶
func (x *SaveMessageV2Request) String() string
type SaveMessageV2Response ¶
type SaveMessageV2Response struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // returned message ID. // contains filtered or unexported fields }
* Represents a response back from a saved message
func (*SaveMessageV2Response) Descriptor
deprecated
func (*SaveMessageV2Response) Descriptor() ([]byte, []int)
Deprecated: Use SaveMessageV2Response.ProtoReflect.Descriptor instead.
func (*SaveMessageV2Response) GetId ¶
func (x *SaveMessageV2Response) GetId() string
func (*SaveMessageV2Response) ProtoMessage ¶
func (*SaveMessageV2Response) ProtoMessage()
func (*SaveMessageV2Response) ProtoReflect ¶
func (x *SaveMessageV2Response) ProtoReflect() protoreflect.Message
func (*SaveMessageV2Response) Reset ¶
func (x *SaveMessageV2Response) Reset()
func (*SaveMessageV2Response) String ¶
func (x *SaveMessageV2Response) String() string
type SendMessageRequest ¶
type SendMessageRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // the simple string message to be sent Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` // The other DID Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // Optional satoshi amount to send along with the message, defaults to 1 sat. ReplyToId string `protobuf:"bytes,4,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"` // Optional ID of the message that this message is replying to. // contains filtered or unexported fields }
* Represents a message send to another DID
func (*SendMessageRequest) Descriptor
deprecated
func (*SendMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
func (*SendMessageRequest) GetAmount ¶
func (x *SendMessageRequest) GetAmount() int64
func (*SendMessageRequest) GetDid ¶
func (x *SendMessageRequest) GetDid() string
func (*SendMessageRequest) GetMsg ¶
func (x *SendMessageRequest) GetMsg() string
func (*SendMessageRequest) GetReplyToId ¶
func (x *SendMessageRequest) GetReplyToId() string
func (*SendMessageRequest) ProtoMessage ¶
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) ProtoReflect ¶
func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
func (*SendMessageRequest) Reset ¶
func (x *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶
func (x *SendMessageRequest) String() string
type SendMessageResponse ¶
type SendMessageResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // returned message ID // contains filtered or unexported fields }
* Represents a response back from a sent message
func (*SendMessageResponse) Descriptor
deprecated
func (*SendMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageResponse.ProtoReflect.Descriptor instead.
func (*SendMessageResponse) GetId ¶
func (x *SendMessageResponse) GetId() string
func (*SendMessageResponse) ProtoMessage ¶
func (*SendMessageResponse) ProtoMessage()
func (*SendMessageResponse) ProtoReflect ¶
func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
func (*SendMessageResponse) Reset ¶
func (x *SendMessageResponse) Reset()
func (*SendMessageResponse) String ¶
func (x *SendMessageResponse) String() string
type SendMessageV2Request ¶
type SendMessageV2Request struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // the body of the DIDcomm message, json structure depends on `type` field. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // the type of the DIDcomm message, will determine body json structure Did string `protobuf:"bytes,3,opt,name=did,proto3" json:"did,omitempty"` // The other DID to send the message to. Deprecated for `recipient_list` / `group_id`. Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` // Optional satoshi amount to send along with the message, defaults to 1 sat. ReplyToId string `protobuf:"bytes,5,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"` // Optional ID of the message that this message is replying to. MessageSettings *MessageSettings `protobuf:"bytes,6,opt,name=message_settings,json=messageSettings,proto3" json:"message_settings,omitempty"` // Optional message settings when sending RecipientList []string `protobuf:"bytes,7,rep,name=recipient_list,json=recipientList,proto3" json:"recipient_list,omitempty"` // The list of recipient dids to send the message to. Cannot use with `group_id` / `did` parameters. GroupId string `protobuf:"bytes,8,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` // The `group_id` to send the message to, instead of a list of recipient dids. Cannot use with `recipient_list` or `did` parameters. // contains filtered or unexported fields }
* Represents a message send to another DID
func (*SendMessageV2Request) Descriptor
deprecated
func (*SendMessageV2Request) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageV2Request.ProtoReflect.Descriptor instead.
func (*SendMessageV2Request) GetAmount ¶
func (x *SendMessageV2Request) GetAmount() int64
func (*SendMessageV2Request) GetBody ¶
func (x *SendMessageV2Request) GetBody() string
func (*SendMessageV2Request) GetDid ¶
func (x *SendMessageV2Request) GetDid() string
func (*SendMessageV2Request) GetGroupId ¶
func (x *SendMessageV2Request) GetGroupId() string
func (*SendMessageV2Request) GetMessageSettings ¶
func (x *SendMessageV2Request) GetMessageSettings() *MessageSettings
func (*SendMessageV2Request) GetRecipientList ¶
func (x *SendMessageV2Request) GetRecipientList() []string
func (*SendMessageV2Request) GetReplyToId ¶
func (x *SendMessageV2Request) GetReplyToId() string
func (*SendMessageV2Request) GetType ¶
func (x *SendMessageV2Request) GetType() string
func (*SendMessageV2Request) ProtoMessage ¶
func (*SendMessageV2Request) ProtoMessage()
func (*SendMessageV2Request) ProtoReflect ¶
func (x *SendMessageV2Request) ProtoReflect() protoreflect.Message
func (*SendMessageV2Request) Reset ¶
func (x *SendMessageV2Request) Reset()
func (*SendMessageV2Request) String ¶
func (x *SendMessageV2Request) String() string
type SendMessageV2Response ¶
type SendMessageV2Response struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // returned message ID. // contains filtered or unexported fields }
* Represents a response back from a sent message
func (*SendMessageV2Response) Descriptor
deprecated
func (*SendMessageV2Response) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageV2Response.ProtoReflect.Descriptor instead.
func (*SendMessageV2Response) GetId ¶
func (x *SendMessageV2Response) GetId() string
func (*SendMessageV2Response) ProtoMessage ¶
func (*SendMessageV2Response) ProtoMessage()
func (*SendMessageV2Response) ProtoReflect ¶
func (x *SendMessageV2Response) ProtoReflect() protoreflect.Message
func (*SendMessageV2Response) Reset ¶
func (x *SendMessageV2Response) Reset()
func (*SendMessageV2Response) String ¶
func (x *SendMessageV2Response) String() string
type UnimplementedMessagingServer ¶
type UnimplementedMessagingServer struct { }
UnimplementedMessagingServer must be embedded to have forward compatible implementations.
func (UnimplementedMessagingServer) DeleteGroupMessage ¶
func (UnimplementedMessagingServer) DeleteGroupMessage(context.Context, *DeleteGroupMessageRequest) (*DeleteGroupMessageResponse, error)
func (UnimplementedMessagingServer) DeleteMessage ¶
func (UnimplementedMessagingServer) DeleteMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageResponse, error)
func (UnimplementedMessagingServer) GetMessageList ¶
func (UnimplementedMessagingServer) GetMessageList(context.Context, *GetMessageListRequest) (*GetMessageListResponse, error)
func (UnimplementedMessagingServer) SaveMessageV2 ¶
func (UnimplementedMessagingServer) SaveMessageV2(context.Context, *SaveMessageV2Request) (*SaveMessageV2Response, error)
func (UnimplementedMessagingServer) SendMessage ¶
func (UnimplementedMessagingServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
func (UnimplementedMessagingServer) SendMessageV2 ¶
func (UnimplementedMessagingServer) SendMessageV2(context.Context, *SendMessageV2Request) (*SendMessageV2Response, error)
type UnsafeMessagingServer ¶ added in v1.0.5
type UnsafeMessagingServer interface {
// contains filtered or unexported methods
}
UnsafeMessagingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessagingServer will result in compilation errors.