rpc

package
v0.0.0-...-dee8dd0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2017 License: ISC Imports: 6 Imported by: 4

Documentation

Overview

Package rpc is a generated protocol buffer package.

It is generated from these files:

rpc.proto

It has these top-level messages:

BitmessageRPC
BMRPCRequest
BMRPCReply
ErrorReply
BMRPCPush
NewAddressRequest
BitmessageSelector
SendBitmessageRequest
ListAddressesRequest
NewAddressReply
ListAddressesReply
BitmessageIdentity
Bitmessage
TextBitmessage
HelpRequest
HelpReply

Index

Constants

This section is empty.

Variables

View Source
var BitmessageRPCType_name = map[int32]string{
	0: "BMRPC_ERROR",
	1: "BMRPC_REQUEST",
	2: "BMRPC_REPLY",
	3: "BMRPC_PUSHNOTIFY",
}
View Source
var BitmessageRPCType_value = map[string]int32{
	"BMRPC_ERROR":      0,
	"BMRPC_REQUEST":    1,
	"BMRPC_REPLY":      2,
	"BMRPC_PUSHNOTIFY": 3,
}
View Source
var BitmessageReplyStatus_name = map[int32]string{
	0: "BMRPCSTATUS_ERROR",
	1: "BMRPCSTATUS_SUCCESS",
	2: "BMRPCSTATUS_UNAUTHORIZED",
	3: "BMRPCSTATUS_INVALID",
}
View Source
var BitmessageReplyStatus_value = map[string]int32{
	"BMRPCSTATUS_ERROR":        0,
	"BMRPCSTATUS_SUCCESS":      1,
	"BMRPCSTATUS_UNAUTHORIZED": 2,
	"BMRPCSTATUS_INVALID":      3,
}
View Source
var BitmessageType_name = map[int32]string{
	0: "BITMESSAGE_ERROR",
	1: "BITMESSAGE_MESSAGE",
	2: "BITMESSAGE_BROADCAST",
}
View Source
var BitmessageType_value = map[string]int32{
	"BITMESSAGE_ERROR":     0,
	"BITMESSAGE_MESSAGE":   1,
	"BITMESSAGE_BROADCAST": 2,
}
View Source
var MessageSelector_name = map[int32]string{
	0: "MESSAGESELECTOR_ERROR",
	1: "MESSAGESELECTOR_INDIVIDUAL",
	2: "MESSAGESELECTOR_UNREAD",
	3: "MESSAGESELECTOR_READ",
	4: "MESSAGESELECTOR_INCOMING",
	5: "MESSAGESELECTOR_SENT",
	6: "MESSAGESELECTOR_ACKNOWLEDGED",
	7: "MESSAGESELECTOR_OUTGOING",
}
View Source
var MessageSelector_value = map[string]int32{
	"MESSAGESELECTOR_ERROR":        0,
	"MESSAGESELECTOR_INDIVIDUAL":   1,
	"MESSAGESELECTOR_UNREAD":       2,
	"MESSAGESELECTOR_READ":         3,
	"MESSAGESELECTOR_INCOMING":     4,
	"MESSAGESELECTOR_SENT":         5,
	"MESSAGESELECTOR_ACKNOWLEDGED": 6,
	"MESSAGESELECTOR_OUTGOING":     7,
}
View Source
var ReplySelector_name = map[int32]string{
	0: "REPLYSELECTOR_ERROR",
	1: "REPLYSELECTOR_INDEX",
	2: "REPLYSELECTOR_FULL",
}
View Source
var ReplySelector_value = map[string]int32{
	"REPLYSELECTOR_ERROR": 0,
	"REPLYSELECTOR_INDEX": 1,
	"REPLYSELECTOR_FULL":  2,
}

Functions

func Message

func Message(r *BMRPCReply) string

func RegisterBMAgentRPCServer

func RegisterBMAgentRPCServer(s *grpc.Server, srv BMAgentRPCServer)

Types

type BMAgentRPCClient

type BMAgentRPCClient interface {
	BMAgentRequest(ctx context.Context, in *BMRPCRequest, opts ...grpc.CallOption) (*BMRPCReply, error)
}

func NewBMAgentRPCClient

func NewBMAgentRPCClient(cc *grpc.ClientConn) BMAgentRPCClient

type BMAgentRPCServer

type BMAgentRPCServer interface {
	BMAgentRequest(context.Context, *BMRPCRequest) (*BMRPCReply, error)
}

type BMRPCPush

type BMRPCPush struct {
	Version          *uint32       `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Message          []*Bitmessage `protobuf:"bytes,8,rep,name=message" json:"message,omitempty"`
	XXX_unrecognized []byte        `json:"-"`
}

func (*BMRPCPush) Descriptor

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

func (*BMRPCPush) GetMessage

func (m *BMRPCPush) GetMessage() []*Bitmessage

func (*BMRPCPush) GetVersion

func (m *BMRPCPush) GetVersion() uint32

func (*BMRPCPush) ProtoMessage

func (*BMRPCPush) ProtoMessage()

func (*BMRPCPush) Reset

func (m *BMRPCPush) Reset()

func (*BMRPCPush) String

func (m *BMRPCPush) String() string

type BMRPCReply

type BMRPCReply struct {
	Version   *uint32                `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Id        *string                `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Requestid *string                `protobuf:"bytes,3,opt,name=requestid" json:"requestid,omitempty"`
	Status    *BitmessageReplyStatus `protobuf:"varint,5,opt,name=status,enum=rpc.BitmessageReplyStatus" json:"status,omitempty"`
	Signature []byte                 `protobuf:"bytes,6,opt,name=signature" json:"signature,omitempty"`
	// Types that are valid to be assigned to Reply:
	//	*BMRPCReply_ErrorReply
	//	*BMRPCReply_Newaddress
	//	*BMRPCReply_Listaddresses
	//	*BMRPCReply_HelpReply
	Reply            isBMRPCReply_Reply `protobuf_oneof:"reply"`
	XXX_unrecognized []byte             `json:"-"`
}

func (*BMRPCReply) Descriptor

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

func (*BMRPCReply) GetErrorReply

func (m *BMRPCReply) GetErrorReply() *ErrorReply

func (*BMRPCReply) GetHelpReply

func (m *BMRPCReply) GetHelpReply() *HelpReply

func (*BMRPCReply) GetId

func (m *BMRPCReply) GetId() string

func (*BMRPCReply) GetListaddresses

func (m *BMRPCReply) GetListaddresses() *ListAddressesReply

func (*BMRPCReply) GetNewaddress

func (m *BMRPCReply) GetNewaddress() *NewAddressReply

func (*BMRPCReply) GetReply

func (m *BMRPCReply) GetReply() isBMRPCReply_Reply

func (*BMRPCReply) GetRequestid

func (m *BMRPCReply) GetRequestid() string

func (*BMRPCReply) GetSignature

func (m *BMRPCReply) GetSignature() []byte

func (*BMRPCReply) GetStatus

func (m *BMRPCReply) GetStatus() BitmessageReplyStatus

func (*BMRPCReply) GetVersion

func (m *BMRPCReply) GetVersion() uint32

func (*BMRPCReply) ProtoMessage

func (*BMRPCReply) ProtoMessage()

func (*BMRPCReply) Reset

func (m *BMRPCReply) Reset()

func (*BMRPCReply) String

func (m *BMRPCReply) String() string

func (*BMRPCReply) XXX_OneofFuncs

func (*BMRPCReply) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type BMRPCReply_ErrorReply

type BMRPCReply_ErrorReply struct {
	ErrorReply *ErrorReply `protobuf:"bytes,8,opt,name=errorReply,oneof"`
}

type BMRPCReply_HelpReply

type BMRPCReply_HelpReply struct {
	HelpReply *HelpReply `protobuf:"bytes,11,opt,name=helpReply,oneof"`
}

type BMRPCReply_Listaddresses

type BMRPCReply_Listaddresses struct {
	Listaddresses *ListAddressesReply `protobuf:"bytes,10,opt,name=listaddresses,oneof"`
}

type BMRPCReply_Newaddress

type BMRPCReply_Newaddress struct {
	Newaddress *NewAddressReply `protobuf:"bytes,9,opt,name=newaddress,oneof"`
}

type BMRPCRequest

type BMRPCRequest struct {
	Version   *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Id        *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Cookie    []byte  `protobuf:"bytes,3,opt,name=cookie" json:"cookie,omitempty"`
	Pubkey    []byte  `protobuf:"bytes,4,opt,name=pubkey" json:"pubkey,omitempty"`
	Signature []byte  `protobuf:"bytes,6,opt,name=signature" json:"signature,omitempty"`
	// Types that are valid to be assigned to Request:
	//	*BMRPCRequest_Newaddress
	//	*BMRPCRequest_Help
	//	*BMRPCRequest_Listaddresses
	Request          isBMRPCRequest_Request `protobuf_oneof:"request"`
	XXX_unrecognized []byte                 `json:"-"`
}

func (*BMRPCRequest) Descriptor

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

func (*BMRPCRequest) GetCookie

func (m *BMRPCRequest) GetCookie() []byte

func (*BMRPCRequest) GetHelp

func (m *BMRPCRequest) GetHelp() *HelpRequest

func (*BMRPCRequest) GetId

func (m *BMRPCRequest) GetId() string

func (*BMRPCRequest) GetListaddresses

func (m *BMRPCRequest) GetListaddresses() *ListAddressesRequest

func (*BMRPCRequest) GetNewaddress

func (m *BMRPCRequest) GetNewaddress() *NewAddressRequest

func (*BMRPCRequest) GetPubkey

func (m *BMRPCRequest) GetPubkey() []byte

func (*BMRPCRequest) GetRequest

func (m *BMRPCRequest) GetRequest() isBMRPCRequest_Request

func (*BMRPCRequest) GetSignature

func (m *BMRPCRequest) GetSignature() []byte

func (*BMRPCRequest) GetVersion

func (m *BMRPCRequest) GetVersion() uint32

func (*BMRPCRequest) ProtoMessage

func (*BMRPCRequest) ProtoMessage()

func (*BMRPCRequest) Reset

func (m *BMRPCRequest) Reset()

func (*BMRPCRequest) String

func (m *BMRPCRequest) String() string

func (*BMRPCRequest) XXX_OneofFuncs

func (*BMRPCRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type BMRPCRequest_Help

type BMRPCRequest_Help struct {
	Help *HelpRequest `protobuf:"bytes,12,opt,name=help,oneof"`
}

type BMRPCRequest_Listaddresses

type BMRPCRequest_Listaddresses struct {
	Listaddresses *ListAddressesRequest `protobuf:"bytes,13,opt,name=listaddresses,oneof"`
}

type BMRPCRequest_Newaddress

type BMRPCRequest_Newaddress struct {
	Newaddress *NewAddressRequest `protobuf:"bytes,9,opt,name=newaddress,oneof"`
}

type Bitmessage

type Bitmessage struct {
	Version   *uint32         `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Id        *string         `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Sender    *string         `protobuf:"bytes,3,opt,name=sender" json:"sender,omitempty"`
	Recipient *string         `protobuf:"bytes,4,opt,name=recipient" json:"recipient,omitempty"`
	Type      *BitmessageType `protobuf:"varint,5,opt,name=type,enum=rpc.BitmessageType" json:"type,omitempty"`
	// Types that are valid to be assigned to Body:
	//	*Bitmessage_Text
	Body             isBitmessage_Body `protobuf_oneof:"body"`
	XXX_unrecognized []byte            `json:"-"`
}

func (*Bitmessage) Descriptor

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

func (*Bitmessage) GetBody

func (m *Bitmessage) GetBody() isBitmessage_Body

func (*Bitmessage) GetId

func (m *Bitmessage) GetId() string

func (*Bitmessage) GetRecipient

func (m *Bitmessage) GetRecipient() string

func (*Bitmessage) GetSender

func (m *Bitmessage) GetSender() string

func (*Bitmessage) GetText

func (m *Bitmessage) GetText() *TextBitmessage

func (*Bitmessage) GetType

func (m *Bitmessage) GetType() BitmessageType

func (*Bitmessage) GetVersion

func (m *Bitmessage) GetVersion() uint32

func (*Bitmessage) ProtoMessage

func (*Bitmessage) ProtoMessage()

func (*Bitmessage) Reset

func (m *Bitmessage) Reset()

func (*Bitmessage) String

func (m *Bitmessage) String() string

func (*Bitmessage) XXX_OneofFuncs

func (*Bitmessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type BitmessageIdentity

type BitmessageIdentity struct {
	Version            *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Address            *string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	Label              *string `protobuf:"bytes,3,opt,name=label" json:"label,omitempty"`
	Behavior           *uint32 `protobuf:"varint,6,opt,name=behavior" json:"behavior,omitempty"`
	Noncetrialsperbyte *uint64 `protobuf:"varint,7,opt,name=noncetrialsperbyte" json:"noncetrialsperbyte,omitempty"`
	Extrabytes         *uint64 `protobuf:"varint,8,opt,name=extrabytes" json:"extrabytes,omitempty"`
	XXX_unrecognized   []byte  `json:"-"`
}

func (*BitmessageIdentity) Descriptor

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

func (*BitmessageIdentity) GetAddress

func (m *BitmessageIdentity) GetAddress() string

func (*BitmessageIdentity) GetBehavior

func (m *BitmessageIdentity) GetBehavior() uint32

func (*BitmessageIdentity) GetExtrabytes

func (m *BitmessageIdentity) GetExtrabytes() uint64

func (*BitmessageIdentity) GetLabel

func (m *BitmessageIdentity) GetLabel() string

func (*BitmessageIdentity) GetNoncetrialsperbyte

func (m *BitmessageIdentity) GetNoncetrialsperbyte() uint64

func (*BitmessageIdentity) GetVersion

func (m *BitmessageIdentity) GetVersion() uint32

func (*BitmessageIdentity) Message

func (bi *BitmessageIdentity) Message() string

func (*BitmessageIdentity) ProtoMessage

func (*BitmessageIdentity) ProtoMessage()

func (*BitmessageIdentity) Reset

func (m *BitmessageIdentity) Reset()

func (*BitmessageIdentity) String

func (m *BitmessageIdentity) String() string

type BitmessageRPC

type BitmessageRPC struct {
	Version *uint32            `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Type    *BitmessageRPCType `protobuf:"varint,2,opt,name=type,enum=rpc.BitmessageRPCType" json:"type,omitempty"`
	// Types that are valid to be assigned to Payload:
	//	*BitmessageRPC_Request
	//	*BitmessageRPC_Reply
	//	*BitmessageRPC_Push
	Payload          isBitmessageRPC_Payload `protobuf_oneof:"payload"`
	XXX_unrecognized []byte                  `json:"-"`
}

func (*BitmessageRPC) Descriptor

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

func (*BitmessageRPC) GetPayload

func (m *BitmessageRPC) GetPayload() isBitmessageRPC_Payload

func (*BitmessageRPC) GetPush

func (m *BitmessageRPC) GetPush() *BMRPCPush

func (*BitmessageRPC) GetReply

func (m *BitmessageRPC) GetReply() *BMRPCReply

func (*BitmessageRPC) GetRequest

func (m *BitmessageRPC) GetRequest() *BMRPCRequest

func (*BitmessageRPC) GetType

func (m *BitmessageRPC) GetType() BitmessageRPCType

func (*BitmessageRPC) GetVersion

func (m *BitmessageRPC) GetVersion() uint32

func (*BitmessageRPC) ProtoMessage

func (*BitmessageRPC) ProtoMessage()

func (*BitmessageRPC) Reset

func (m *BitmessageRPC) Reset()

func (*BitmessageRPC) String

func (m *BitmessageRPC) String() string

func (*BitmessageRPC) XXX_OneofFuncs

func (*BitmessageRPC) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type BitmessageRPCType

type BitmessageRPCType int32
const (
	BitmessageRPCType_BMRPC_ERROR      BitmessageRPCType = 0
	BitmessageRPCType_BMRPC_REQUEST    BitmessageRPCType = 1
	BitmessageRPCType_BMRPC_REPLY      BitmessageRPCType = 2
	BitmessageRPCType_BMRPC_PUSHNOTIFY BitmessageRPCType = 3
)

func (BitmessageRPCType) Enum

func (BitmessageRPCType) EnumDescriptor

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

func (BitmessageRPCType) String

func (x BitmessageRPCType) String() string

func (*BitmessageRPCType) UnmarshalJSON

func (x *BitmessageRPCType) UnmarshalJSON(data []byte) error

type BitmessageRPC_Push

type BitmessageRPC_Push struct {
	Push *BMRPCPush `protobuf:"bytes,5,opt,name=push,oneof"`
}

type BitmessageRPC_Reply

type BitmessageRPC_Reply struct {
	Reply *BMRPCReply `protobuf:"bytes,4,opt,name=reply,oneof"`
}

type BitmessageRPC_Request

type BitmessageRPC_Request struct {
	Request *BMRPCRequest `protobuf:"bytes,3,opt,name=request,oneof"`
}

type BitmessageReplyStatus

type BitmessageReplyStatus int32
const (
	BitmessageReplyStatus_BMRPCSTATUS_ERROR        BitmessageReplyStatus = 0
	BitmessageReplyStatus_BMRPCSTATUS_SUCCESS      BitmessageReplyStatus = 1
	BitmessageReplyStatus_BMRPCSTATUS_UNAUTHORIZED BitmessageReplyStatus = 2
	BitmessageReplyStatus_BMRPCSTATUS_INVALID      BitmessageReplyStatus = 3
)

func (BitmessageReplyStatus) Enum

func (BitmessageReplyStatus) EnumDescriptor

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

func (BitmessageReplyStatus) String

func (x BitmessageReplyStatus) String() string

func (*BitmessageReplyStatus) UnmarshalJSON

func (x *BitmessageReplyStatus) UnmarshalJSON(data []byte) error

type BitmessageSelector

type BitmessageSelector struct {
	Version          *uint32          `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Address          *string          `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	Id               []string         `protobuf:"bytes,3,rep,name=id" json:"id,omitempty"`
	Type             *ReplySelector   `protobuf:"varint,4,opt,name=type,enum=rpc.ReplySelector" json:"type,omitempty"`
	Selector         *MessageSelector `protobuf:"varint,5,opt,name=selector,enum=rpc.MessageSelector" json:"selector,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*BitmessageSelector) Descriptor

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

func (*BitmessageSelector) GetAddress

func (m *BitmessageSelector) GetAddress() string

func (*BitmessageSelector) GetId

func (m *BitmessageSelector) GetId() []string

func (*BitmessageSelector) GetSelector

func (m *BitmessageSelector) GetSelector() MessageSelector

func (*BitmessageSelector) GetType

func (m *BitmessageSelector) GetType() ReplySelector

func (*BitmessageSelector) GetVersion

func (m *BitmessageSelector) GetVersion() uint32

func (*BitmessageSelector) ProtoMessage

func (*BitmessageSelector) ProtoMessage()

func (*BitmessageSelector) Reset

func (m *BitmessageSelector) Reset()

func (*BitmessageSelector) String

func (m *BitmessageSelector) String() string

type BitmessageType

type BitmessageType int32
const (
	BitmessageType_BITMESSAGE_ERROR     BitmessageType = 0
	BitmessageType_BITMESSAGE_MESSAGE   BitmessageType = 1
	BitmessageType_BITMESSAGE_BROADCAST BitmessageType = 2
)

func (BitmessageType) Enum

func (x BitmessageType) Enum() *BitmessageType

func (BitmessageType) EnumDescriptor

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

func (BitmessageType) String

func (x BitmessageType) String() string

func (*BitmessageType) UnmarshalJSON

func (x *BitmessageType) UnmarshalJSON(data []byte) error

type Bitmessage_Text

type Bitmessage_Text struct {
	Text *TextBitmessage `protobuf:"bytes,6,opt,name=text,oneof"`
}

type ErrorReply

type ErrorReply struct {
	Version          *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Error            *string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ErrorReply) Descriptor

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

func (*ErrorReply) GetError

func (m *ErrorReply) GetError() string

func (*ErrorReply) GetVersion

func (m *ErrorReply) GetVersion() uint32

func (*ErrorReply) Message

func (r *ErrorReply) Message() string

func (*ErrorReply) ProtoMessage

func (*ErrorReply) ProtoMessage()

func (*ErrorReply) Reset

func (m *ErrorReply) Reset()

func (*ErrorReply) String

func (m *ErrorReply) String() string

type HelpReply

type HelpReply struct {
	Version          *uint32  `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Instructions     []string `protobuf:"bytes,2,rep,name=instructions" json:"instructions,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*HelpReply) Descriptor

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

func (*HelpReply) GetInstructions

func (m *HelpReply) GetInstructions() []string

func (*HelpReply) GetVersion

func (m *HelpReply) GetVersion() uint32

func (*HelpReply) Message

func (r *HelpReply) Message() string

func (*HelpReply) ProtoMessage

func (*HelpReply) ProtoMessage()

func (*HelpReply) Reset

func (m *HelpReply) Reset()

func (*HelpReply) String

func (m *HelpReply) String() string

type HelpRequest

type HelpRequest struct {
	Version          *uint32  `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Requests         []string `protobuf:"bytes,2,rep,name=requests" json:"requests,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*HelpRequest) Descriptor

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

func (*HelpRequest) GetRequests

func (m *HelpRequest) GetRequests() []string

func (*HelpRequest) GetVersion

func (m *HelpRequest) GetVersion() uint32

func (*HelpRequest) ProtoMessage

func (*HelpRequest) ProtoMessage()

func (*HelpRequest) Reset

func (m *HelpRequest) Reset()

func (*HelpRequest) String

func (m *HelpRequest) String() string

type ListAddressesReply

type ListAddressesReply struct {
	Version          *uint32               `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Addresses        []*BitmessageIdentity `protobuf:"bytes,2,rep,name=addresses" json:"addresses,omitempty"`
	XXX_unrecognized []byte                `json:"-"`
}

func (*ListAddressesReply) Descriptor

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

func (*ListAddressesReply) GetAddresses

func (m *ListAddressesReply) GetAddresses() []*BitmessageIdentity

func (*ListAddressesReply) GetVersion

func (m *ListAddressesReply) GetVersion() uint32

func (*ListAddressesReply) Message

func (r *ListAddressesReply) Message() string

func (*ListAddressesReply) ProtoMessage

func (*ListAddressesReply) ProtoMessage()

func (*ListAddressesReply) Reset

func (m *ListAddressesReply) Reset()

func (*ListAddressesReply) String

func (m *ListAddressesReply) String() string

type ListAddressesRequest

type ListAddressesRequest struct {
	Version          *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ListAddressesRequest) Descriptor

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

func (*ListAddressesRequest) GetVersion

func (m *ListAddressesRequest) GetVersion() uint32

func (*ListAddressesRequest) ProtoMessage

func (*ListAddressesRequest) ProtoMessage()

func (*ListAddressesRequest) Reset

func (m *ListAddressesRequest) Reset()

func (*ListAddressesRequest) String

func (m *ListAddressesRequest) String() string

type MessageSelector

type MessageSelector int32
const (
	MessageSelector_MESSAGESELECTOR_ERROR        MessageSelector = 0
	MessageSelector_MESSAGESELECTOR_INDIVIDUAL   MessageSelector = 1
	MessageSelector_MESSAGESELECTOR_UNREAD       MessageSelector = 2
	MessageSelector_MESSAGESELECTOR_READ         MessageSelector = 3
	MessageSelector_MESSAGESELECTOR_INCOMING     MessageSelector = 4
	MessageSelector_MESSAGESELECTOR_SENT         MessageSelector = 5
	MessageSelector_MESSAGESELECTOR_ACKNOWLEDGED MessageSelector = 6
	MessageSelector_MESSAGESELECTOR_OUTGOING     MessageSelector = 7
)

func (MessageSelector) Enum

func (x MessageSelector) Enum() *MessageSelector

func (MessageSelector) EnumDescriptor

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

func (MessageSelector) String

func (x MessageSelector) String() string

func (*MessageSelector) UnmarshalJSON

func (x *MessageSelector) UnmarshalJSON(data []byte) error

type NewAddressReply

type NewAddressReply struct {
	Version          *uint32             `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Address          *BitmessageIdentity `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	XXX_unrecognized []byte              `json:"-"`
}

func (*NewAddressReply) Descriptor

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

func (*NewAddressReply) GetAddress

func (m *NewAddressReply) GetAddress() *BitmessageIdentity

func (*NewAddressReply) GetVersion

func (m *NewAddressReply) GetVersion() uint32

func (*NewAddressReply) Message

func (r *NewAddressReply) Message() string

func (*NewAddressReply) ProtoMessage

func (*NewAddressReply) ProtoMessage()

func (*NewAddressReply) Reset

func (m *NewAddressReply) Reset()

func (*NewAddressReply) String

func (m *NewAddressReply) String() string

type NewAddressRequest

type NewAddressRequest struct {
	Version            *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Addressversion     *uint32 `protobuf:"varint,2,opt,name=addressversion" json:"addressversion,omitempty"`
	Label              *string `protobuf:"bytes,3,opt,name=label" json:"label,omitempty"`
	Stream             *uint32 `protobuf:"varint,4,opt,name=stream" json:"stream,omitempty"`
	Pow                *uint32 `protobuf:"varint,5,opt,name=pow" json:"pow,omitempty"`
	Noncetrialsperbyte *uint32 `protobuf:"varint,11,opt,name=noncetrialsperbyte" json:"noncetrialsperbyte,omitempty"`
	Extrabytes         *uint32 `protobuf:"varint,6,opt,name=extrabytes" json:"extrabytes,omitempty"`
	Dml                *bool   `protobuf:"varint,7,opt,name=dml" json:"dml,omitempty"`
	Deterministic      *bool   `protobuf:"varint,8,opt,name=deterministic" json:"deterministic,omitempty"`
	Seed               []byte  `protobuf:"bytes,9,opt,name=seed" json:"seed,omitempty"`
	Ack                *bool   `protobuf:"varint,10,opt,name=ack" json:"ack,omitempty"`
	XXX_unrecognized   []byte  `json:"-"`
}

func (*NewAddressRequest) Descriptor

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

func (*NewAddressRequest) GetAck

func (m *NewAddressRequest) GetAck() bool

func (*NewAddressRequest) GetAddressversion

func (m *NewAddressRequest) GetAddressversion() uint32

func (*NewAddressRequest) GetDeterministic

func (m *NewAddressRequest) GetDeterministic() bool

func (*NewAddressRequest) GetDml

func (m *NewAddressRequest) GetDml() bool

func (*NewAddressRequest) GetExtrabytes

func (m *NewAddressRequest) GetExtrabytes() uint32

func (*NewAddressRequest) GetLabel

func (m *NewAddressRequest) GetLabel() string

func (*NewAddressRequest) GetNoncetrialsperbyte

func (m *NewAddressRequest) GetNoncetrialsperbyte() uint32

func (*NewAddressRequest) GetPow

func (m *NewAddressRequest) GetPow() uint32

func (*NewAddressRequest) GetSeed

func (m *NewAddressRequest) GetSeed() []byte

func (*NewAddressRequest) GetStream

func (m *NewAddressRequest) GetStream() uint32

func (*NewAddressRequest) GetVersion

func (m *NewAddressRequest) GetVersion() uint32

func (*NewAddressRequest) ProtoMessage

func (*NewAddressRequest) ProtoMessage()

func (*NewAddressRequest) Reset

func (m *NewAddressRequest) Reset()

func (*NewAddressRequest) String

func (m *NewAddressRequest) String() string

type ReplySelector

type ReplySelector int32
const (
	ReplySelector_REPLYSELECTOR_ERROR ReplySelector = 0
	ReplySelector_REPLYSELECTOR_INDEX ReplySelector = 1
	ReplySelector_REPLYSELECTOR_FULL  ReplySelector = 2
)

func (ReplySelector) Enum

func (x ReplySelector) Enum() *ReplySelector

func (ReplySelector) EnumDescriptor

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

func (ReplySelector) String

func (x ReplySelector) String() string

func (*ReplySelector) UnmarshalJSON

func (x *ReplySelector) UnmarshalJSON(data []byte) error

type SendBitmessageRequest

type SendBitmessageRequest struct {
	Version   *uint32  `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Sender    *string  `protobuf:"bytes,2,opt,name=sender" json:"sender,omitempty"`
	Recipient []string `protobuf:"bytes,3,rep,name=recipient" json:"recipient,omitempty"`
	Broadcast *bool    `protobuf:"varint,4,opt,name=broadcast" json:"broadcast,omitempty"`
	Ttl       *uint64  `protobuf:"varint,5,opt,name=ttl" json:"ttl,omitempty"`
	// Types that are valid to be assigned to Contents:
	//	*SendBitmessageRequest_Text
	Contents         isSendBitmessageRequest_Contents `protobuf_oneof:"contents"`
	XXX_unrecognized []byte                           `json:"-"`
}

func (*SendBitmessageRequest) Descriptor

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

func (*SendBitmessageRequest) GetBroadcast

func (m *SendBitmessageRequest) GetBroadcast() bool

func (*SendBitmessageRequest) GetContents

func (m *SendBitmessageRequest) GetContents() isSendBitmessageRequest_Contents

func (*SendBitmessageRequest) GetRecipient

func (m *SendBitmessageRequest) GetRecipient() []string

func (*SendBitmessageRequest) GetSender

func (m *SendBitmessageRequest) GetSender() string

func (*SendBitmessageRequest) GetText

func (m *SendBitmessageRequest) GetText() *TextBitmessage

func (*SendBitmessageRequest) GetTtl

func (m *SendBitmessageRequest) GetTtl() uint64

func (*SendBitmessageRequest) GetVersion

func (m *SendBitmessageRequest) GetVersion() uint32

func (*SendBitmessageRequest) ProtoMessage

func (*SendBitmessageRequest) ProtoMessage()

func (*SendBitmessageRequest) Reset

func (m *SendBitmessageRequest) Reset()

func (*SendBitmessageRequest) String

func (m *SendBitmessageRequest) String() string

func (*SendBitmessageRequest) XXX_OneofFuncs

func (*SendBitmessageRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type SendBitmessageRequest_Text

type SendBitmessageRequest_Text struct {
	Text *TextBitmessage `protobuf:"bytes,6,opt,name=text,oneof"`
}

type TextBitmessage

type TextBitmessage struct {
	Version          *uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Subject          *string `protobuf:"bytes,2,opt,name=subject" json:"subject,omitempty"`
	Contents         *string `protobuf:"bytes,3,opt,name=contents" json:"contents,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*TextBitmessage) Descriptor

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

func (*TextBitmessage) GetContents

func (m *TextBitmessage) GetContents() string

func (*TextBitmessage) GetSubject

func (m *TextBitmessage) GetSubject() string

func (*TextBitmessage) GetVersion

func (m *TextBitmessage) GetVersion() uint32

func (*TextBitmessage) ProtoMessage

func (*TextBitmessage) ProtoMessage()

func (*TextBitmessage) Reset

func (m *TextBitmessage) Reset()

func (*TextBitmessage) String

func (m *TextBitmessage) String() string

Jump to

Keyboard shortcuts

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