Documentation ¶
Overview ¶
Package grpc_test is a generated protocol buffer package.
It is generated from these files:
grpc_test/test.proto
It has these top-level messages:
Simple Complex
Index ¶
- Variables
- type Complex
- func (m *Complex) GetCommunique() (x []*Complex_Communique)
- func (m *Complex) GetCompactKeys() (x map[int32]string)
- func (m *Complex) GetMulti() (x *multitest2.Multi1)
- func (m *Complex) Marshal() []byte
- func (m *Complex) MarshalToWriter(writer jspb.Writer)
- func (m *Complex) Unmarshal(rawBytes []byte) (*Complex, error)
- func (m *Complex) UnmarshalFromReader(reader jspb.Reader) *Complex
- type Complex_Communique
- func (m *Complex_Communique) GetData() (x []byte)
- func (m *Complex_Communique) GetDelta() (x int32)
- func (m *Complex_Communique) GetHeight() (x float32)
- func (m *Complex_Communique) GetMakeMeCry() (x bool)
- func (m *Complex_Communique) GetMaybe() (x bool)
- func (m *Complex_Communique) GetName() (x string)
- func (m *Complex_Communique) GetNumber() (x int32)
- func (m *Complex_Communique) GetTempC() (x float64)
- func (m *Complex_Communique) GetToday() (x Days)
- func (m *Complex_Communique) GetUnionThing() (x isComplex_Communique_UnionThing)
- func (m *Complex_Communique) Marshal() []byte
- func (m *Complex_Communique) MarshalToWriter(writer jspb.Writer)
- func (m *Complex_Communique) Unmarshal(rawBytes []byte) (*Complex_Communique, error)
- func (m *Complex_Communique) UnmarshalFromReader(reader jspb.Reader) *Complex_Communique
- type Complex_Communique_Data
- type Complex_Communique_Delta
- func (m *Complex_Communique_Delta) Marshal() []byte
- func (m *Complex_Communique_Delta) MarshalToWriter(writer jspb.Writer)
- func (m *Complex_Communique_Delta) Unmarshal(rawBytes []byte) (*Complex_Communique_Delta, error)
- func (m *Complex_Communique_Delta) UnmarshalFromReader(reader jspb.Reader) *Complex_Communique_Delta
- type Complex_Communique_Delta_
- type Complex_Communique_Height
- type Complex_Communique_Maybe
- type Complex_Communique_Name
- type Complex_Communique_Number
- type Complex_Communique_TempC
- type Complex_Communique_Today
- type Days
- type Simple
- func (m *Simple) GetDay() (x Days)
- func (m *Simple) GetDeadline() (x float32)
- func (m *Simple) GetKey() (x int64)
- func (m *Simple) GetName() (x string)
- func (m *Simple) Marshal() []byte
- func (m *Simple) MarshalToWriter(writer jspb.Writer)
- func (m *Simple) Unmarshal(rawBytes []byte) (*Simple, error)
- func (m *Simple) UnmarshalFromReader(reader jspb.Reader) *Simple
- type TestServiceClient
- type TestService_ServerStreamingClient
Constants ¶
This section is empty.
Variables ¶
var Days_name = map[int]string{
0: "MONDAY",
2: "TUESDAY",
}
var Days_value = map[string]int{
"MONDAY": 0,
"TUESDAY": 2,
"LUNDI": 0,
}
Functions ¶
This section is empty.
Types ¶
type Complex ¶
type Complex struct { Communique []*Complex_Communique CompactKeys map[int32]string // Multi is imported Multi *multitest2.Multi1 }
Complex is a complicated message
func (*Complex) GetCommunique ¶
func (m *Complex) GetCommunique() (x []*Complex_Communique)
GetCommunique gets the Communique of the Complex.
func (*Complex) GetCompactKeys ¶
GetCompactKeys gets the CompactKeys of the Complex.
func (*Complex) GetMulti ¶
func (m *Complex) GetMulti() (x *multitest2.Multi1)
GetMulti gets the Multi of the Complex.
func (*Complex) MarshalToWriter ¶
MarshalToWriter marshals Complex to the provided writer.
type Complex_Communique ¶
type Complex_Communique struct { MakeMeCry bool // This is a oneof, called "union_thing". // // Types that are valid to be assigned to UnionThing: // *Complex_Communique_Number // *Complex_Communique_Name // *Complex_Communique_Data // *Complex_Communique_TempC // *Complex_Communique_Height // *Complex_Communique_Today // *Complex_Communique_Maybe // *Complex_Communique_Delta_ UnionThing isComplex_Communique_UnionThing }
func (*Complex_Communique) GetData ¶
func (m *Complex_Communique) GetData() (x []byte)
GetData gets the Data of the Complex_Communique.
func (*Complex_Communique) GetDelta ¶
func (m *Complex_Communique) GetDelta() (x int32)
GetDelta gets the Delta of the Complex_Communique.
func (*Complex_Communique) GetHeight ¶
func (m *Complex_Communique) GetHeight() (x float32)
GetHeight gets the Height of the Complex_Communique.
func (*Complex_Communique) GetMakeMeCry ¶
func (m *Complex_Communique) GetMakeMeCry() (x bool)
GetMakeMeCry gets the MakeMeCry of the Complex_Communique.
func (*Complex_Communique) GetMaybe ¶
func (m *Complex_Communique) GetMaybe() (x bool)
GetMaybe gets the Maybe of the Complex_Communique.
func (*Complex_Communique) GetName ¶
func (m *Complex_Communique) GetName() (x string)
GetName gets the Name of the Complex_Communique.
func (*Complex_Communique) GetNumber ¶
func (m *Complex_Communique) GetNumber() (x int32)
GetNumber gets the Number of the Complex_Communique.
func (*Complex_Communique) GetTempC ¶
func (m *Complex_Communique) GetTempC() (x float64)
GetTempC gets the TempC of the Complex_Communique.
func (*Complex_Communique) GetToday ¶
func (m *Complex_Communique) GetToday() (x Days)
GetToday gets the Today of the Complex_Communique.
func (*Complex_Communique) GetUnionThing ¶
func (m *Complex_Communique) GetUnionThing() (x isComplex_Communique_UnionThing)
GetUnionThing gets the UnionThing of the Complex_Communique.
func (*Complex_Communique) Marshal ¶
func (m *Complex_Communique) Marshal() []byte
Marshal marshals Complex_Communique to a slice of bytes.
func (*Complex_Communique) MarshalToWriter ¶
func (m *Complex_Communique) MarshalToWriter(writer jspb.Writer)
MarshalToWriter marshals Complex_Communique to the provided writer.
func (*Complex_Communique) Unmarshal ¶
func (m *Complex_Communique) Unmarshal(rawBytes []byte) (*Complex_Communique, error)
Unmarshal unmarshals a Complex_Communique from a slice of bytes.
func (*Complex_Communique) UnmarshalFromReader ¶
func (m *Complex_Communique) UnmarshalFromReader(reader jspb.Reader) *Complex_Communique
UnmarshalFromReader unmarshals a Complex_Communique from the provided reader.
type Complex_Communique_Data ¶
type Complex_Communique_Data struct {
Data []byte
}
Complex_Communique_Data is assignable to UnionThing
type Complex_Communique_Delta ¶
type Complex_Communique_Delta struct { }
func (*Complex_Communique_Delta) Marshal ¶
func (m *Complex_Communique_Delta) Marshal() []byte
Marshal marshals Complex_Communique_Delta to a slice of bytes.
func (*Complex_Communique_Delta) MarshalToWriter ¶
func (m *Complex_Communique_Delta) MarshalToWriter(writer jspb.Writer)
MarshalToWriter marshals Complex_Communique_Delta to the provided writer.
func (*Complex_Communique_Delta) Unmarshal ¶
func (m *Complex_Communique_Delta) Unmarshal(rawBytes []byte) (*Complex_Communique_Delta, error)
Unmarshal unmarshals a Complex_Communique_Delta from a slice of bytes.
func (*Complex_Communique_Delta) UnmarshalFromReader ¶
func (m *Complex_Communique_Delta) UnmarshalFromReader(reader jspb.Reader) *Complex_Communique_Delta
UnmarshalFromReader unmarshals a Complex_Communique_Delta from the provided reader.
type Complex_Communique_Delta_ ¶
type Complex_Communique_Delta_ struct {
Delta int32
}
Complex_Communique_Delta_ is assignable to UnionThing
type Complex_Communique_Height ¶
type Complex_Communique_Height struct {
Height float32
}
Complex_Communique_Height is assignable to UnionThing
type Complex_Communique_Maybe ¶
type Complex_Communique_Maybe struct {
Maybe bool
}
Complex_Communique_Maybe is assignable to UnionThing
type Complex_Communique_Name ¶
type Complex_Communique_Name struct {
Name string
}
Complex_Communique_Name is assignable to UnionThing
type Complex_Communique_Number ¶
type Complex_Communique_Number struct {
Number int32
}
Complex_Communique_Number is assignable to UnionThing
type Complex_Communique_TempC ¶
type Complex_Communique_TempC struct {
TempC float64
}
Complex_Communique_TempC is assignable to UnionThing
type Complex_Communique_Today ¶
type Complex_Communique_Today struct {
Today Days
}
Complex_Communique_Today is assignable to UnionThing
type Simple ¶
Simple is a simple message.
func (*Simple) GetDeadline ¶
GetDeadline gets the Deadline of the Simple.
func (*Simple) MarshalToWriter ¶
MarshalToWriter marshals Simple to the provided writer.
type TestServiceClient ¶
type TestServiceClient interface { Unary(ctx context.Context, in *Simple, opts ...grpcweb.CallOption) (*Complex, error) ServerStreaming(ctx context.Context, in *Simple, opts ...grpcweb.CallOption) (TestService_ServerStreamingClient, error) }
This is a TestService
func NewTestServiceClient ¶
func NewTestServiceClient(hostname string, opts ...grpcweb.DialOption) TestServiceClient
NewTestServiceClient creates a new gRPC-Web client.
type TestService_ServerStreamingClient ¶
type TestService_ServerStreamingClient interface { Recv() (*Complex, error) grpcweb.ClientStream }