Documentation
¶
Index ¶
- Variables
- func RegisterTestServer(s *grpc.Server, srv TestServer)
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetBase58() []byte
- func (m *Message) GetBase58Repeated() [][]byte
- func (m *Message) GetBoolean() bool
- func (m *Message) GetBooleanRepeated() []bool
- func (m *Message) GetBuf() []byte
- func (m *Message) GetBufRepeated() [][]byte
- func (m *Message) GetByterate() uint64
- func (m *Message) GetByterateRepeated() []uint64
- func (m *Message) GetBytesize() uint64
- func (m *Message) GetBytesizeRepeated() []uint64
- func (m *Message) GetDuration() int64
- func (m *Message) GetDurationRepeated() []int64
- func (m *Message) GetEnumeration() Message_Enum
- func (m *Message) GetEnumerationRepeated() []Message_Enum
- func (m *Message) GetI32() int32
- func (m *Message) GetI32Repeated() []uint32
- func (m *Message) GetI64() int64
- func (m *Message) GetI64Repeated() []int64
- func (m *Message) GetMultiaddr() []byte
- func (m *Message) GetMultiaddrRepeated() [][]byte
- func (m *Message) GetNoext() string
- func (m *Message) GetReq() string
- func (m *Message) GetStr() string
- func (m *Message) GetStrRepeated() []string
- func (m *Message) GetTime() int64
- func (m *Message) GetTimeRepeated() []int64
- func (m *Message) GetU32() uint32
- func (m *Message) GetU32Repeated() []uint32
- func (m *Message) GetU64() uint64
- func (m *Message) GetU64Repeated() []uint64
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Message_Enum
- type TestClient
- type TestServer
- type Test_ServerStreamClient
- type Test_ServerStreamServer
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) GetBase58Repeated ¶
func (*Message) GetBoolean ¶
func (*Message) GetBooleanRepeated ¶
func (*Message) GetBufRepeated ¶
func (*Message) GetByterate ¶
func (*Message) GetByterateRepeated ¶
func (*Message) GetBytesize ¶
func (*Message) GetBytesizeRepeated ¶
func (*Message) GetDuration ¶
func (*Message) GetDurationRepeated ¶
func (*Message) GetEnumeration ¶
func (m *Message) GetEnumeration() Message_Enum
func (*Message) GetEnumerationRepeated ¶
func (m *Message) GetEnumerationRepeated() []Message_Enum
func (*Message) GetI32Repeated ¶
func (*Message) GetI64Repeated ¶
func (*Message) GetMultiaddr ¶
func (*Message) GetMultiaddrRepeated ¶
func (*Message) GetStrRepeated ¶
func (*Message) GetTimeRepeated ¶
func (*Message) GetU32Repeated ¶
func (*Message) GetU64Repeated ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶ added in v0.2.0
func (*Message) XXX_Unmarshal ¶ added in v0.2.0
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
}
Click to show internal directories.
Click to hide internal directories.