Documentation ¶
Index ¶
- Variables
- func RegisterE2EServer(s grpc.ServiceRegistrar, srv E2EServer)
- type Basic
- func (*Basic) Descriptor() ([]byte, []int)deprecated
- func (x *Basic) GetA() string
- func (m *Basic) GetB() isBasic_B
- func (x *Basic) GetInt() int32
- func (x *Basic) GetMap() map[string]string
- func (x *Basic) GetStr() string
- func (msg *Basic) MarshalJSON() ([]byte, error)
- func (*Basic) ProtoMessage()
- func (x *Basic) ProtoReflect() protoreflect.Message
- func (x *Basic) Reset()
- func (msg *Basic) Scan(src interface{}) error
- func (x *Basic) String() string
- func (msg *Basic) UnmarshalJSON(b []byte) error
- func (msg Basic) Value() (driver.Value, error)
- type Basic_Int
- type Basic_Str
- type E2EClient
- type E2EServer
- type HasScanMsg
- func (*HasScanMsg) Descriptor() ([]byte, []int)deprecated
- func (x *HasScanMsg) GetField_1() string
- func (x *HasScanMsg) GetScan() string
- func (msg *HasScanMsg) MarshalJSON() ([]byte, error)
- func (*HasScanMsg) ProtoMessage()
- func (x *HasScanMsg) ProtoReflect() protoreflect.Message
- func (x *HasScanMsg) Reset()
- func (x *HasScanMsg) String() string
- func (msg *HasScanMsg) UnmarshalJSON(b []byte) error
- type HasValueMsg
- func (*HasValueMsg) Descriptor() ([]byte, []int)deprecated
- func (x *HasValueMsg) GetField_1() string
- func (x *HasValueMsg) GetValue() string
- func (msg *HasValueMsg) MarshalJSON() ([]byte, error)
- func (*HasValueMsg) ProtoMessage()
- func (x *HasValueMsg) ProtoReflect() protoreflect.Message
- func (x *HasValueMsg) Reset()
- func (x *HasValueMsg) String() string
- func (msg *HasValueMsg) UnmarshalJSON(b []byte) error
- type Nested
- func (*Nested) Descriptor() ([]byte, []int)deprecated
- func (msg *Nested) MarshalJSON() ([]byte, error)
- func (*Nested) ProtoMessage()
- func (x *Nested) ProtoReflect() protoreflect.Message
- func (x *Nested) Reset()
- func (msg *Nested) Scan(src interface{}) error
- func (x *Nested) String() string
- func (msg *Nested) UnmarshalJSON(b []byte) error
- func (msg Nested) Value() (driver.Value, error)
- type Nested_Message
- func (*Nested_Message) Descriptor() ([]byte, []int)deprecated
- func (x *Nested_Message) GetBasic() *Basic
- func (msg *Nested_Message) MarshalJSON() ([]byte, error)
- func (*Nested_Message) ProtoMessage()
- func (x *Nested_Message) ProtoReflect() protoreflect.Message
- func (x *Nested_Message) Reset()
- func (msg *Nested_Message) Scan(src interface{}) error
- func (x *Nested_Message) String() string
- func (msg *Nested_Message) UnmarshalJSON(b []byte) error
- func (msg Nested_Message) Value() (driver.Value, error)
- type UnimplementedE2EServer
- type UnsafeE2EServer
Constants ¶
This section is empty.
Variables ¶
var E2E_ServiceDesc = grpc.ServiceDesc{ ServiceName: "e2e.E2E", HandlerType: (*E2EServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _E2E_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "e2e/e2e_service.proto", }
E2E_ServiceDesc is the grpc.ServiceDesc for E2E service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_e2e_e2e_proto protoreflect.FileDescriptor
var File_e2e_e2e_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterE2EServer ¶
func RegisterE2EServer(s grpc.ServiceRegistrar, srv E2EServer)
Types ¶
type Basic ¶
type Basic struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` // Types that are assignable to B: // *Basic_Int // *Basic_Str B isBasic_B `protobuf_oneof:"b"` Map map[string]string `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
Basic just tests basic fields, including oneofs and so on that don't generally work automatically with encoding/json.
func (*Basic) Descriptor
deprecated
func (*Basic) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Basic) ProtoMessage ¶
func (*Basic) ProtoMessage()
func (*Basic) ProtoReflect ¶
func (x *Basic) ProtoReflect() protoreflect.Message
func (*Basic) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type Basic_Int ¶
type Basic_Int struct {
Int int32 `protobuf:"varint,2,opt,name=int,proto3,oneof"`
}
type Basic_Str ¶
type Basic_Str struct {
Str string `protobuf:"bytes,3,opt,name=str,proto3,oneof"`
}
type E2EClient ¶
type E2EClient interface {
Hello(ctx context.Context, in *Basic, opts ...grpc.CallOption) (*Basic, error)
}
E2EClient is the client API for E2E service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewE2EClient ¶
func NewE2EClient(cc grpc.ClientConnInterface) E2EClient
type E2EServer ¶
E2EServer is the server API for E2E service. All implementations should embed UnimplementedE2EServer for forward compatibility
type HasScanMsg ¶ added in v2.0.1
type HasScanMsg struct { Field_1 string `protobuf:"bytes,1,opt,name=field_1,json=field1,proto3" json:"field_1,omitempty"` Scan string `protobuf:"bytes,2,opt,name=scan,proto3" json:"scan,omitempty"` // contains filtered or unexported fields }
func (*HasScanMsg) Descriptor
deprecated
added in
v2.0.1
func (*HasScanMsg) Descriptor() ([]byte, []int)
Deprecated: Use HasScanMsg.ProtoReflect.Descriptor instead.
func (*HasScanMsg) GetField_1 ¶ added in v2.0.1
func (x *HasScanMsg) GetField_1() string
func (*HasScanMsg) GetScan ¶ added in v2.0.1
func (x *HasScanMsg) GetScan() string
func (*HasScanMsg) MarshalJSON ¶ added in v2.0.1
func (msg *HasScanMsg) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*HasScanMsg) ProtoMessage ¶ added in v2.0.1
func (*HasScanMsg) ProtoMessage()
func (*HasScanMsg) ProtoReflect ¶ added in v2.0.1
func (x *HasScanMsg) ProtoReflect() protoreflect.Message
func (*HasScanMsg) Reset ¶ added in v2.0.1
func (x *HasScanMsg) Reset()
func (*HasScanMsg) String ¶ added in v2.0.1
func (x *HasScanMsg) String() string
func (*HasScanMsg) UnmarshalJSON ¶ added in v2.0.1
func (msg *HasScanMsg) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type HasValueMsg ¶ added in v2.0.1
type HasValueMsg struct { Field_1 string `protobuf:"bytes,1,opt,name=field_1,json=field1,proto3" json:"field_1,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*HasValueMsg) Descriptor
deprecated
added in
v2.0.1
func (*HasValueMsg) Descriptor() ([]byte, []int)
Deprecated: Use HasValueMsg.ProtoReflect.Descriptor instead.
func (*HasValueMsg) GetField_1 ¶ added in v2.0.1
func (x *HasValueMsg) GetField_1() string
func (*HasValueMsg) GetValue ¶ added in v2.0.1
func (x *HasValueMsg) GetValue() string
func (*HasValueMsg) MarshalJSON ¶ added in v2.0.1
func (msg *HasValueMsg) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*HasValueMsg) ProtoMessage ¶ added in v2.0.1
func (*HasValueMsg) ProtoMessage()
func (*HasValueMsg) ProtoReflect ¶ added in v2.0.1
func (x *HasValueMsg) ProtoReflect() protoreflect.Message
func (*HasValueMsg) Reset ¶ added in v2.0.1
func (x *HasValueMsg) Reset()
func (*HasValueMsg) String ¶ added in v2.0.1
func (x *HasValueMsg) String() string
func (*HasValueMsg) UnmarshalJSON ¶ added in v2.0.1
func (msg *HasValueMsg) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type Nested ¶
type Nested struct {
// contains filtered or unexported fields
}
Test nested types
func (*Nested) Descriptor
deprecated
func (*Nested) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
func (*Nested) ProtoReflect ¶
func (x *Nested) ProtoReflect() protoreflect.Message
func (*Nested) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type Nested_Message ¶
type Nested_Message struct { Basic *Basic `protobuf:"bytes,1,opt,name=basic,proto3" json:"basic,omitempty"` // contains filtered or unexported fields }
func (*Nested_Message) Descriptor
deprecated
func (*Nested_Message) Descriptor() ([]byte, []int)
Deprecated: Use Nested_Message.ProtoReflect.Descriptor instead.
func (*Nested_Message) GetBasic ¶
func (x *Nested_Message) GetBasic() *Basic
func (*Nested_Message) MarshalJSON ¶
func (msg *Nested_Message) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*Nested_Message) ProtoMessage ¶
func (*Nested_Message) ProtoMessage()
func (*Nested_Message) ProtoReflect ¶
func (x *Nested_Message) ProtoReflect() protoreflect.Message
func (*Nested_Message) Reset ¶
func (x *Nested_Message) Reset()
func (*Nested_Message) Scan ¶
func (msg *Nested_Message) Scan(src interface{}) error
Scan implements sql.Scanner
func (*Nested_Message) String ¶
func (x *Nested_Message) String() string
func (*Nested_Message) UnmarshalJSON ¶
func (msg *Nested_Message) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type UnimplementedE2EServer ¶
type UnimplementedE2EServer struct { }
UnimplementedE2EServer should be embedded to have forward compatible implementations.
type UnsafeE2EServer ¶
type UnsafeE2EServer interface {
// contains filtered or unexported methods
}
UnsafeE2EServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to E2EServer will result in compilation errors.