test

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTest   = fmt.Errorf("proto: integer overflow")
)
View Source
var Message_Enum_name = map[int32]string{
	0: "A",
	1: "B",
}
View Source
var Message_Enum_value = map[string]int32{
	"A": 0,
	"B": 1,
}

Functions

func RegisterTestServer

func RegisterTestServer(s *grpc.Server, srv TestServer)

Types

type Message

type Message struct {
	Noext                string         `protobuf:"bytes,1,opt,name=noext,proto3" json:"noext,omitempty"`
	Req                  string         `protobuf:"bytes,2,opt,name=req,proto3" json:"req,omitempty"`
	Str                  string         `protobuf:"bytes,10,opt,name=str,proto3" json:"str,omitempty"`
	StrRepeated          []string       `protobuf:"bytes,11,rep,name=str_repeated,json=strRepeated" json:"str_repeated,omitempty"`
	Boolean              bool           `protobuf:"varint,12,opt,name=boolean,proto3" json:"boolean,omitempty"`
	BooleanRepeated      []bool         `protobuf:"varint,13,rep,packed,name=boolean_repeated,json=booleanRepeated" json:"boolean_repeated,omitempty"`
	I32                  int32          `protobuf:"varint,14,opt,name=i32,proto3" json:"i32,omitempty"`
	I32Repeated          []uint32       `protobuf:"varint,15,rep,packed,name=i32_repeated,json=i32Repeated" json:"i32_repeated,omitempty"`
	U32                  uint32         `protobuf:"varint,16,opt,name=u32,proto3" json:"u32,omitempty"`
	U32Repeated          []uint32       `protobuf:"varint,17,rep,packed,name=u32_repeated,json=u32Repeated" json:"u32_repeated,omitempty"`
	I64                  int64          `protobuf:"varint,18,opt,name=i64,proto3" json:"i64,omitempty"`
	I64Repeated          []int64        `protobuf:"varint,19,rep,packed,name=i64_repeated,json=i64Repeated" json:"i64_repeated,omitempty"`
	U64                  uint64         `protobuf:"varint,20,opt,name=u64,proto3" json:"u64,omitempty"`
	U64Repeated          []uint64       `protobuf:"varint,21,rep,packed,name=u64_repeated,json=u64Repeated" json:"u64_repeated,omitempty"`
	Buf                  []byte         `protobuf:"bytes,22,opt,name=buf,proto3" json:"buf,omitempty"`
	BufRepeated          [][]byte       `protobuf:"bytes,23,rep,name=buf_repeated,json=bufRepeated" json:"buf_repeated,omitempty"`
	Enumeration          Message_Enum   `protobuf:"varint,30,opt,name=enumeration,proto3,enum=stratumn.node.cli.test.Message_Enum" json:"enumeration,omitempty"`
	EnumerationRepeated  []Message_Enum `` /* 161-byte string literal not displayed */
	Base58               []byte         `protobuf:"bytes,50,opt,name=base58,proto3" json:"base58,omitempty"`
	Base58Repeated       [][]byte       `protobuf:"bytes,51,rep,name=base58_repeated,json=base58Repeated" json:"base58_repeated,omitempty"`
	Multiaddr            []byte         `protobuf:"bytes,52,opt,name=multiaddr,proto3" json:"multiaddr,omitempty"`
	MultiaddrRepeated    [][]byte       `protobuf:"bytes,53,rep,name=multiaddr_repeated,json=multiaddrRepeated" json:"multiaddr_repeated,omitempty"`
	Time                 int64          `protobuf:"varint,54,opt,name=time,proto3" json:"time,omitempty"`
	TimeRepeated         []int64        `protobuf:"varint,55,rep,packed,name=time_repeated,json=timeRepeated" json:"time_repeated,omitempty"`
	Duration             int64          `protobuf:"varint,56,opt,name=duration,proto3" json:"duration,omitempty"`
	DurationRepeated     []int64        `protobuf:"varint,57,rep,packed,name=duration_repeated,json=durationRepeated" json:"duration_repeated,omitempty"`
	Bytesize             uint64         `protobuf:"varint,58,opt,name=bytesize,proto3" json:"bytesize,omitempty"`
	BytesizeRepeated     []uint64       `protobuf:"varint,59,rep,packed,name=bytesize_repeated,json=bytesizeRepeated" json:"bytesize_repeated,omitempty"`
	Byterate             uint64         `protobuf:"varint,60,opt,name=byterate,proto3" json:"byterate,omitempty"`
	ByterateRepeated     []uint64       `protobuf:"varint,61,rep,packed,name=byterate_repeated,json=byterateRepeated" json:"byterate_repeated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetBase58

func (m *Message) GetBase58() []byte

func (*Message) GetBase58Repeated

func (m *Message) GetBase58Repeated() [][]byte

func (*Message) GetBoolean

func (m *Message) GetBoolean() bool

func (*Message) GetBooleanRepeated

func (m *Message) GetBooleanRepeated() []bool

func (*Message) GetBuf

func (m *Message) GetBuf() []byte

func (*Message) GetBufRepeated

func (m *Message) GetBufRepeated() [][]byte

func (*Message) GetByterate

func (m *Message) GetByterate() uint64

func (*Message) GetByterateRepeated

func (m *Message) GetByterateRepeated() []uint64

func (*Message) GetBytesize

func (m *Message) GetBytesize() uint64

func (*Message) GetBytesizeRepeated

func (m *Message) GetBytesizeRepeated() []uint64

func (*Message) GetDuration

func (m *Message) GetDuration() int64

func (*Message) GetDurationRepeated

func (m *Message) GetDurationRepeated() []int64

func (*Message) GetEnumeration

func (m *Message) GetEnumeration() Message_Enum

func (*Message) GetEnumerationRepeated

func (m *Message) GetEnumerationRepeated() []Message_Enum

func (*Message) GetI32

func (m *Message) GetI32() int32

func (*Message) GetI32Repeated

func (m *Message) GetI32Repeated() []uint32

func (*Message) GetI64

func (m *Message) GetI64() int64

func (*Message) GetI64Repeated

func (m *Message) GetI64Repeated() []int64

func (*Message) GetMultiaddr

func (m *Message) GetMultiaddr() []byte

func (*Message) GetMultiaddrRepeated

func (m *Message) GetMultiaddrRepeated() [][]byte

func (*Message) GetNoext

func (m *Message) GetNoext() string

func (*Message) GetReq

func (m *Message) GetReq() string

func (*Message) GetStr

func (m *Message) GetStr() string

func (*Message) GetStrRepeated

func (m *Message) GetStrRepeated() []string

func (*Message) GetTime

func (m *Message) GetTime() int64

func (*Message) GetTimeRepeated

func (m *Message) GetTimeRepeated() []int64

func (*Message) GetU32

func (m *Message) GetU32() uint32

func (*Message) GetU32Repeated

func (m *Message) GetU32Repeated() []uint32

func (*Message) GetU64

func (m *Message) GetU64() uint64

func (*Message) GetU64Repeated

func (m *Message) GetU64Repeated() []uint64

func (*Message) Marshal

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

func (*Message) MarshalTo

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

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

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

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

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

func (*Message) XXX_DiscardUnknown added in v0.2.0

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal added in v0.2.0

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

func (*Message) XXX_Merge added in v0.2.0

func (dst *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size added in v0.2.0

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal added in v0.2.0

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

type Message_Enum

type Message_Enum int32
const (
	Message_A Message_Enum = 0
	Message_B Message_Enum = 1
)

func (Message_Enum) EnumDescriptor

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

func (Message_Enum) String

func (x Message_Enum) String() string

type TestClient

type TestClient interface {
	UnaryReq(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
	ServerStream(ctx context.Context, in *Message, opts ...grpc.CallOption) (Test_ServerStreamClient, error)
	NoExt(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}

TestClient is the client API for Test service.

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

func NewTestClient

func NewTestClient(cc *grpc.ClientConn) TestClient

type TestServer

type TestServer interface {
	UnaryReq(context.Context, *Message) (*Message, error)
	ServerStream(*Message, Test_ServerStreamServer) error
	NoExt(context.Context, *Message) (*Message, error)
}

TestServer is the server API for Test service.

type Test_ServerStreamClient

type Test_ServerStreamClient interface {
	Recv() (*Message, error)
	grpc.ClientStream
}

type Test_ServerStreamServer

type Test_ServerStreamServer interface {
	Send(*Message) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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