grpc_test

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 4 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var Days_name = map[int]string{
	0: "MONDAY",
	2: "TUESDAY",
}
View Source
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

func (m *Complex) GetCompactKeys() (x map[int32]string)

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) Marshal

func (m *Complex) Marshal() []byte

Marshal marshals Complex to a slice of bytes.

func (*Complex) MarshalToWriter

func (m *Complex) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Complex to the provided writer.

func (*Complex) Unmarshal

func (m *Complex) Unmarshal(rawBytes []byte) (*Complex, error)

Unmarshal unmarshals a Complex from a slice of bytes.

func (*Complex) UnmarshalFromReader

func (m *Complex) UnmarshalFromReader(reader jspb.Reader) *Complex

UnmarshalFromReader unmarshals a Complex from the provided reader.

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 Days

type Days int

This enum represents days of the week.

const (
	Days_MONDAY  Days = 0
	Days_TUESDAY Days = 2
	Days_LUNDI   Days = 0
)

func (Days) String

func (x Days) String() string

type Simple

type Simple struct {
	Key      int64
	Deadline float32
	Day      Days
	Name     string
}

Simple is a simple message.

func (*Simple) GetDay

func (m *Simple) GetDay() (x Days)

GetDay gets the Day of the Simple.

func (*Simple) GetDeadline

func (m *Simple) GetDeadline() (x float32)

GetDeadline gets the Deadline of the Simple.

func (*Simple) GetKey

func (m *Simple) GetKey() (x int64)

GetKey gets the Key of the Simple.

func (*Simple) GetName

func (m *Simple) GetName() (x string)

GetName gets the Name of the Simple.

func (*Simple) Marshal

func (m *Simple) Marshal() []byte

Marshal marshals Simple to a slice of bytes.

func (*Simple) MarshalToWriter

func (m *Simple) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Simple to the provided writer.

func (*Simple) Unmarshal

func (m *Simple) Unmarshal(rawBytes []byte) (*Simple, error)

Unmarshal unmarshals a Simple from a slice of bytes.

func (*Simple) UnmarshalFromReader

func (m *Simple) UnmarshalFromReader(reader jspb.Reader) *Simple

UnmarshalFromReader unmarshals a Simple from the provided reader.

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
}

Jump to

Keyboard shortcuts

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