message

package
v0.0.0-...-d55f3a2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package message is a generated protocol buffer package.

It is generated from these files:

cockroach/rpc/codec/message/arith.proto
cockroach/rpc/codec/message/echo.proto

It has these top-level messages:

ArithRequest
ArithResponse
EchoRequest
EchoResponse

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthArith = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowArith   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthEcho = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEcho   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type ArithRequest

type ArithRequest struct {
	A int32 `protobuf:"varint,1,opt,name=a" json:"a"`
	B int32 `protobuf:"varint,2,opt,name=b" json:"b"`
}

func (*ArithRequest) GetA

func (m *ArithRequest) GetA() int32

func (*ArithRequest) GetB

func (m *ArithRequest) GetB() int32

func (*ArithRequest) GetUser

func (*ArithRequest) GetUser() string

GetUser implements security.RequestWithUser.

func (*ArithRequest) Marshal

func (m *ArithRequest) Marshal() (data []byte, err error)

func (*ArithRequest) MarshalTo

func (m *ArithRequest) MarshalTo(data []byte) (int, error)

func (*ArithRequest) ProtoMessage

func (*ArithRequest) ProtoMessage()

func (*ArithRequest) Reset

func (m *ArithRequest) Reset()

func (*ArithRequest) Size

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

func (*ArithRequest) String

func (m *ArithRequest) String() string

func (*ArithRequest) Unmarshal

func (m *ArithRequest) Unmarshal(data []byte) error

type ArithResponse

type ArithResponse struct {
	C int32 `protobuf:"varint,1,opt,name=c" json:"c"`
}

func (*ArithResponse) GetC

func (m *ArithResponse) GetC() int32

func (*ArithResponse) Marshal

func (m *ArithResponse) Marshal() (data []byte, err error)

func (*ArithResponse) MarshalTo

func (m *ArithResponse) MarshalTo(data []byte) (int, error)

func (*ArithResponse) ProtoMessage

func (*ArithResponse) ProtoMessage()

func (*ArithResponse) Reset

func (m *ArithResponse) Reset()

func (*ArithResponse) Size

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

func (*ArithResponse) String

func (m *ArithResponse) String() string

func (*ArithResponse) Unmarshal

func (m *ArithResponse) Unmarshal(data []byte) error

type EchoRequest

type EchoRequest struct {
	Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg"`
}

func (*EchoRequest) GetMsg

func (m *EchoRequest) GetMsg() string

func (*EchoRequest) GetUser

func (*EchoRequest) GetUser() string

GetUser implements security.RequestWithUser.

func (*EchoRequest) Marshal

func (m *EchoRequest) Marshal() (data []byte, err error)

func (*EchoRequest) MarshalTo

func (m *EchoRequest) MarshalTo(data []byte) (int, error)

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) Reset

func (m *EchoRequest) Reset()

func (*EchoRequest) Size

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

func (*EchoRequest) String

func (m *EchoRequest) String() string

func (*EchoRequest) Unmarshal

func (m *EchoRequest) Unmarshal(data []byte) error

type EchoResponse

type EchoResponse struct {
	Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg"`
}

func (*EchoResponse) GetMsg

func (m *EchoResponse) GetMsg() string

func (*EchoResponse) Marshal

func (m *EchoResponse) Marshal() (data []byte, err error)

func (*EchoResponse) MarshalTo

func (m *EchoResponse) MarshalTo(data []byte) (int, error)

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) Reset

func (m *EchoResponse) Reset()

func (*EchoResponse) Size

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

func (*EchoResponse) String

func (m *EchoResponse) String() string

func (*EchoResponse) Unmarshal

func (m *EchoResponse) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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