convopb

package
v0.0.0-...-55ba49f Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: AGPL-3.0-or-later Imports: 7 Imported by: 6

Documentation

Overview

Package convopb is a generated protocol buffer package.

We can't name this mixnetpb because it conflicts with Alpenhorn's mixnetpb package.

It is generated from these files:

mixnet.proto

It has these top-level messages:

Nothing
NewRoundRequest
PublicServerConfig
NewRoundResponse
RoundSettings
SetRoundSettingsRequest
RoundSettingsSignature
AddOnionsRequest
CloseRoundRequest
CloseRoundResponse
GetOnionsRequest
GetOnionsResponse
DeleteRoundRequest

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMixnet = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMixnet   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterMixnetServer

func RegisterMixnetServer(s *grpc.Server, srv MixnetServer)

Types

type AddOnionsRequest

type AddOnionsRequest struct {
	Offset uint32   `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Onions [][]byte `protobuf:"bytes,2,rep,name=onions" json:"onions,omitempty"`
}

func (*AddOnionsRequest) Descriptor

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

func (*AddOnionsRequest) GetOffset

func (m *AddOnionsRequest) GetOffset() uint32

func (*AddOnionsRequest) GetOnions

func (m *AddOnionsRequest) GetOnions() [][]byte

func (*AddOnionsRequest) Marshal

func (m *AddOnionsRequest) Marshal() (dAtA []byte, err error)

func (*AddOnionsRequest) MarshalTo

func (m *AddOnionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*AddOnionsRequest) ProtoMessage

func (*AddOnionsRequest) ProtoMessage()

func (*AddOnionsRequest) Reset

func (m *AddOnionsRequest) Reset()

func (*AddOnionsRequest) Size

func (m *AddOnionsRequest) Size() (n int)

func (*AddOnionsRequest) String

func (m *AddOnionsRequest) String() string

func (*AddOnionsRequest) Unmarshal

func (m *AddOnionsRequest) Unmarshal(dAtA []byte) error

type CloseRoundRequest

type CloseRoundRequest struct {
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Round   uint32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
}

func (*CloseRoundRequest) Descriptor

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

func (*CloseRoundRequest) GetRound

func (m *CloseRoundRequest) GetRound() uint32

func (*CloseRoundRequest) GetService

func (m *CloseRoundRequest) GetService() string

func (*CloseRoundRequest) Marshal

func (m *CloseRoundRequest) Marshal() (dAtA []byte, err error)

func (*CloseRoundRequest) MarshalTo

func (m *CloseRoundRequest) MarshalTo(dAtA []byte) (int, error)

func (*CloseRoundRequest) ProtoMessage

func (*CloseRoundRequest) ProtoMessage()

func (*CloseRoundRequest) Reset

func (m *CloseRoundRequest) Reset()

func (*CloseRoundRequest) Size

func (m *CloseRoundRequest) Size() (n int)

func (*CloseRoundRequest) String

func (m *CloseRoundRequest) String() string

func (*CloseRoundRequest) Unmarshal

func (m *CloseRoundRequest) Unmarshal(dAtA []byte) error

type CloseRoundResponse

type CloseRoundResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
}

func (*CloseRoundResponse) Descriptor

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

func (*CloseRoundResponse) GetResult

func (m *CloseRoundResponse) GetResult() string

func (*CloseRoundResponse) Marshal

func (m *CloseRoundResponse) Marshal() (dAtA []byte, err error)

func (*CloseRoundResponse) MarshalTo

func (m *CloseRoundResponse) MarshalTo(dAtA []byte) (int, error)

func (*CloseRoundResponse) ProtoMessage

func (*CloseRoundResponse) ProtoMessage()

func (*CloseRoundResponse) Reset

func (m *CloseRoundResponse) Reset()

func (*CloseRoundResponse) Size

func (m *CloseRoundResponse) Size() (n int)

func (*CloseRoundResponse) String

func (m *CloseRoundResponse) String() string

func (*CloseRoundResponse) Unmarshal

func (m *CloseRoundResponse) Unmarshal(dAtA []byte) error

type DeleteRoundRequest

type DeleteRoundRequest struct {
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Round   uint32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
}

func (*DeleteRoundRequest) Descriptor

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

func (*DeleteRoundRequest) GetRound

func (m *DeleteRoundRequest) GetRound() uint32

func (*DeleteRoundRequest) GetService

func (m *DeleteRoundRequest) GetService() string

func (*DeleteRoundRequest) Marshal

func (m *DeleteRoundRequest) Marshal() (dAtA []byte, err error)

func (*DeleteRoundRequest) MarshalTo

func (m *DeleteRoundRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteRoundRequest) ProtoMessage

func (*DeleteRoundRequest) ProtoMessage()

func (*DeleteRoundRequest) Reset

func (m *DeleteRoundRequest) Reset()

func (*DeleteRoundRequest) Size

func (m *DeleteRoundRequest) Size() (n int)

func (*DeleteRoundRequest) String

func (m *DeleteRoundRequest) String() string

func (*DeleteRoundRequest) Unmarshal

func (m *DeleteRoundRequest) Unmarshal(dAtA []byte) error

type GetOnionsRequest

type GetOnionsRequest struct {
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Round   uint32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Offset  uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	Count   uint32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
}

func (*GetOnionsRequest) Descriptor

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

func (*GetOnionsRequest) GetCount

func (m *GetOnionsRequest) GetCount() uint32

func (*GetOnionsRequest) GetOffset

func (m *GetOnionsRequest) GetOffset() uint32

func (*GetOnionsRequest) GetRound

func (m *GetOnionsRequest) GetRound() uint32

func (*GetOnionsRequest) GetService

func (m *GetOnionsRequest) GetService() string

func (*GetOnionsRequest) Marshal

func (m *GetOnionsRequest) Marshal() (dAtA []byte, err error)

func (*GetOnionsRequest) MarshalTo

func (m *GetOnionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetOnionsRequest) ProtoMessage

func (*GetOnionsRequest) ProtoMessage()

func (*GetOnionsRequest) Reset

func (m *GetOnionsRequest) Reset()

func (*GetOnionsRequest) Size

func (m *GetOnionsRequest) Size() (n int)

func (*GetOnionsRequest) String

func (m *GetOnionsRequest) String() string

func (*GetOnionsRequest) Unmarshal

func (m *GetOnionsRequest) Unmarshal(dAtA []byte) error

type GetOnionsResponse

type GetOnionsResponse struct {
	Offset uint32   `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Onions [][]byte `protobuf:"bytes,2,rep,name=onions" json:"onions,omitempty"`
}

func (*GetOnionsResponse) Descriptor

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

func (*GetOnionsResponse) GetOffset

func (m *GetOnionsResponse) GetOffset() uint32

func (*GetOnionsResponse) GetOnions

func (m *GetOnionsResponse) GetOnions() [][]byte

func (*GetOnionsResponse) Marshal

func (m *GetOnionsResponse) Marshal() (dAtA []byte, err error)

func (*GetOnionsResponse) MarshalTo

func (m *GetOnionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetOnionsResponse) ProtoMessage

func (*GetOnionsResponse) ProtoMessage()

func (*GetOnionsResponse) Reset

func (m *GetOnionsResponse) Reset()

func (*GetOnionsResponse) Size

func (m *GetOnionsResponse) Size() (n int)

func (*GetOnionsResponse) String

func (m *GetOnionsResponse) String() string

func (*GetOnionsResponse) Unmarshal

func (m *GetOnionsResponse) Unmarshal(dAtA []byte) error

type MixnetClient

type MixnetClient interface {
	NewRound(ctx context.Context, in *NewRoundRequest, opts ...grpc.CallOption) (*NewRoundResponse, error)
	SetRoundSettings(ctx context.Context, in *SetRoundSettingsRequest, opts ...grpc.CallOption) (*RoundSettingsSignature, error)
	AddOnions(ctx context.Context, opts ...grpc.CallOption) (Mixnet_AddOnionsClient, error)
	CloseRound(ctx context.Context, in *CloseRoundRequest, opts ...grpc.CallOption) (*CloseRoundResponse, error)
	GetOnions(ctx context.Context, in *GetOnionsRequest, opts ...grpc.CallOption) (Mixnet_GetOnionsClient, error)
	DeleteRound(ctx context.Context, in *DeleteRoundRequest, opts ...grpc.CallOption) (*Nothing, error)
}

func NewMixnetClient

func NewMixnetClient(cc *grpc.ClientConn) MixnetClient

type Mixnet_AddOnionsClient

type Mixnet_AddOnionsClient interface {
	Send(*AddOnionsRequest) error
	CloseAndRecv() (*Nothing, error)
	grpc.ClientStream
}

type Mixnet_AddOnionsServer

type Mixnet_AddOnionsServer interface {
	SendAndClose(*Nothing) error
	Recv() (*AddOnionsRequest, error)
	grpc.ServerStream
}

type Mixnet_GetOnionsClient

type Mixnet_GetOnionsClient interface {
	Recv() (*GetOnionsResponse, error)
	grpc.ClientStream
}

type Mixnet_GetOnionsServer

type Mixnet_GetOnionsServer interface {
	Send(*GetOnionsResponse) error
	grpc.ServerStream
}

type NewRoundRequest

type NewRoundRequest struct {
	Service string                `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Round   uint32                `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Chain   []*PublicServerConfig `protobuf:"bytes,3,rep,name=chain" json:"chain,omitempty"`
}

func (*NewRoundRequest) Descriptor

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

func (*NewRoundRequest) GetChain

func (m *NewRoundRequest) GetChain() []*PublicServerConfig

func (*NewRoundRequest) GetRound

func (m *NewRoundRequest) GetRound() uint32

func (*NewRoundRequest) GetService

func (m *NewRoundRequest) GetService() string

func (*NewRoundRequest) Marshal

func (m *NewRoundRequest) Marshal() (dAtA []byte, err error)

func (*NewRoundRequest) MarshalTo

func (m *NewRoundRequest) MarshalTo(dAtA []byte) (int, error)

func (*NewRoundRequest) ProtoMessage

func (*NewRoundRequest) ProtoMessage()

func (*NewRoundRequest) Reset

func (m *NewRoundRequest) Reset()

func (*NewRoundRequest) Size

func (m *NewRoundRequest) Size() (n int)

func (*NewRoundRequest) String

func (m *NewRoundRequest) String() string

func (*NewRoundRequest) Unmarshal

func (m *NewRoundRequest) Unmarshal(dAtA []byte) error

type NewRoundResponse

type NewRoundResponse struct {
	OnionKey []byte `protobuf:"bytes,1,opt,name=onion_key,json=onionKey,proto3" json:"onion_key,omitempty"`
}

func (*NewRoundResponse) Descriptor

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

func (*NewRoundResponse) GetOnionKey

func (m *NewRoundResponse) GetOnionKey() []byte

func (*NewRoundResponse) Marshal

func (m *NewRoundResponse) Marshal() (dAtA []byte, err error)

func (*NewRoundResponse) MarshalTo

func (m *NewRoundResponse) MarshalTo(dAtA []byte) (int, error)

func (*NewRoundResponse) ProtoMessage

func (*NewRoundResponse) ProtoMessage()

func (*NewRoundResponse) Reset

func (m *NewRoundResponse) Reset()

func (*NewRoundResponse) Size

func (m *NewRoundResponse) Size() (n int)

func (*NewRoundResponse) String

func (m *NewRoundResponse) String() string

func (*NewRoundResponse) Unmarshal

func (m *NewRoundResponse) Unmarshal(dAtA []byte) error

type Nothing

type Nothing struct {
}

func (*Nothing) Descriptor

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

func (*Nothing) Marshal

func (m *Nothing) Marshal() (dAtA []byte, err error)

func (*Nothing) MarshalTo

func (m *Nothing) MarshalTo(dAtA []byte) (int, error)

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) Size

func (m *Nothing) Size() (n int)

func (*Nothing) String

func (m *Nothing) String() string

func (*Nothing) Unmarshal

func (m *Nothing) Unmarshal(dAtA []byte) error

type PublicServerConfig

type PublicServerConfig struct {
	Key     []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*PublicServerConfig) Descriptor

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

func (*PublicServerConfig) GetAddress

func (m *PublicServerConfig) GetAddress() string

func (*PublicServerConfig) GetKey

func (m *PublicServerConfig) GetKey() []byte

func (*PublicServerConfig) Marshal

func (m *PublicServerConfig) Marshal() (dAtA []byte, err error)

func (*PublicServerConfig) MarshalTo

func (m *PublicServerConfig) MarshalTo(dAtA []byte) (int, error)

func (*PublicServerConfig) ProtoMessage

func (*PublicServerConfig) ProtoMessage()

func (*PublicServerConfig) Reset

func (m *PublicServerConfig) Reset()

func (*PublicServerConfig) Size

func (m *PublicServerConfig) Size() (n int)

func (*PublicServerConfig) String

func (m *PublicServerConfig) String() string

func (*PublicServerConfig) Unmarshal

func (m *PublicServerConfig) Unmarshal(dAtA []byte) error

type RoundSettings

type RoundSettings struct {
	Service     string   `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Round       uint32   `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	OnionKeys   [][]byte `protobuf:"bytes,3,rep,name=onion_keys,json=onionKeys" json:"onion_keys,omitempty"`
	ServiceData []byte   `protobuf:"bytes,4,opt,name=service_data,json=serviceData,proto3" json:"service_data,omitempty"`
}

func (*RoundSettings) Descriptor

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

func (*RoundSettings) GetOnionKeys

func (m *RoundSettings) GetOnionKeys() [][]byte

func (*RoundSettings) GetRound

func (m *RoundSettings) GetRound() uint32

func (*RoundSettings) GetService

func (m *RoundSettings) GetService() string

func (*RoundSettings) GetServiceData

func (m *RoundSettings) GetServiceData() []byte

func (*RoundSettings) Marshal

func (m *RoundSettings) Marshal() (dAtA []byte, err error)

func (*RoundSettings) MarshalTo

func (m *RoundSettings) MarshalTo(dAtA []byte) (int, error)

func (*RoundSettings) ProtoMessage

func (*RoundSettings) ProtoMessage()

func (*RoundSettings) Reset

func (m *RoundSettings) Reset()

func (*RoundSettings) Size

func (m *RoundSettings) Size() (n int)

func (*RoundSettings) String

func (m *RoundSettings) String() string

func (*RoundSettings) Unmarshal

func (m *RoundSettings) Unmarshal(dAtA []byte) error

type RoundSettingsSignature

type RoundSettingsSignature struct {
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*RoundSettingsSignature) Descriptor

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

func (*RoundSettingsSignature) GetSignature

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

func (*RoundSettingsSignature) Marshal

func (m *RoundSettingsSignature) Marshal() (dAtA []byte, err error)

func (*RoundSettingsSignature) MarshalTo

func (m *RoundSettingsSignature) MarshalTo(dAtA []byte) (int, error)

func (*RoundSettingsSignature) ProtoMessage

func (*RoundSettingsSignature) ProtoMessage()

func (*RoundSettingsSignature) Reset

func (m *RoundSettingsSignature) Reset()

func (*RoundSettingsSignature) Size

func (m *RoundSettingsSignature) Size() (n int)

func (*RoundSettingsSignature) String

func (m *RoundSettingsSignature) String() string

func (*RoundSettingsSignature) Unmarshal

func (m *RoundSettingsSignature) Unmarshal(dAtA []byte) error

type SetRoundSettingsRequest

type SetRoundSettingsRequest struct {
	Settings *RoundSettings `protobuf:"bytes,1,opt,name=settings" json:"settings,omitempty"`
}

func (*SetRoundSettingsRequest) Descriptor

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

func (*SetRoundSettingsRequest) GetSettings

func (m *SetRoundSettingsRequest) GetSettings() *RoundSettings

func (*SetRoundSettingsRequest) Marshal

func (m *SetRoundSettingsRequest) Marshal() (dAtA []byte, err error)

func (*SetRoundSettingsRequest) MarshalTo

func (m *SetRoundSettingsRequest) MarshalTo(dAtA []byte) (int, error)

func (*SetRoundSettingsRequest) ProtoMessage

func (*SetRoundSettingsRequest) ProtoMessage()

func (*SetRoundSettingsRequest) Reset

func (m *SetRoundSettingsRequest) Reset()

func (*SetRoundSettingsRequest) Size

func (m *SetRoundSettingsRequest) Size() (n int)

func (*SetRoundSettingsRequest) String

func (m *SetRoundSettingsRequest) String() string

func (*SetRoundSettingsRequest) Unmarshal

func (m *SetRoundSettingsRequest) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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