Versions in this module Expand all Collapse all v0 v0.34.4 Jul 23, 2021 Changes in this version + const GRPCCodecName + var DefaultDialOptions = []grpc.DialOption + var ErrIntOverflowEncoding = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthEncoding = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupEncoding = fmt.Errorf("proto: unexpected end of group") + func Decode(bs []byte, msg proto.Message) error + func Encode(msg proto.Message) ([]byte, error) + func GRPCDial(grpcAddress string, additionalOpts ...grpc.DialOption) (*grpc.ClientConn, error) + func GRPCDialContext(ctx context.Context, grpcAddress string, additionalOpts ...grpc.DialOption) (*grpc.ClientConn, error) + func GetEthChainID(chainID string) *big.Int + func ReadMessage(r io.Reader, pb proto.Message) (int, error) + func WriteMessage(w io.Writer, pb proto.Message) (int, error) + type GRPCCodec struct + func (G *GRPCCodec) Marshal(v interface{}) ([]byte, error) + func (G *GRPCCodec) Name() string + func (G *GRPCCodec) String() string + func (G *GRPCCodec) Unmarshal(data []byte, v interface{}) error + type TestMessage struct + Amount uint64 + Type uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*TestMessage) Descriptor() ([]byte, []int) + func (*TestMessage) ProtoMessage() + func (*TestMessage) XXX_MessageName() string + func (m *TestMessage) GetAmount() uint64 + func (m *TestMessage) GetType() uint32 + func (m *TestMessage) Marshal() (dAtA []byte, err error) + func (m *TestMessage) MarshalTo(dAtA []byte) (int, error) + func (m *TestMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TestMessage) Reset() + func (m *TestMessage) Size() (n int) + func (m *TestMessage) Unmarshal(dAtA []byte) error + func (m *TestMessage) XXX_DiscardUnknown() + func (m *TestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TestMessage) XXX_Merge(src proto.Message) + func (m *TestMessage) XXX_Size() int + func (m *TestMessage) XXX_Unmarshal(b []byte) error + func (tm TestMessage) String() string