weather

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scale_name = map[int32]string{
	0: "CELCIUS",
	1: "FAHRENHEIT",
}
View Source
var Scale_value = map[string]int32{
	"CELCIUS":    0,
	"FAHRENHEIT": 1,
}

Functions

func RegisterScaleConvServer

func RegisterScaleConvServer(s *grpc.Server, srv ScaleConvServer)

func RegisterWeatherServer

func RegisterWeatherServer(s *grpc.Server, srv WeatherServer)

Types

type AskAboutWeatherRequest

type AskAboutWeatherRequest struct {
	City                 string   `protobuf:"bytes,1,opt,name=city,proto3" json:"city,omitempty"`
	Scale                Scale    `protobuf:"varint,2,opt,name=scale,proto3,enum=weather.Scale" json:"scale,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AskAboutWeatherRequest) Descriptor

func (*AskAboutWeatherRequest) Descriptor() ([]byte, []int)

func (*AskAboutWeatherRequest) GetCity

func (m *AskAboutWeatherRequest) GetCity() string

func (*AskAboutWeatherRequest) GetScale

func (m *AskAboutWeatherRequest) GetScale() Scale

func (*AskAboutWeatherRequest) ProtoMessage

func (*AskAboutWeatherRequest) ProtoMessage()

func (*AskAboutWeatherRequest) Reset

func (m *AskAboutWeatherRequest) Reset()

func (*AskAboutWeatherRequest) String

func (m *AskAboutWeatherRequest) String() string

func (*AskAboutWeatherRequest) XXX_DiscardUnknown

func (m *AskAboutWeatherRequest) XXX_DiscardUnknown()

func (*AskAboutWeatherRequest) XXX_Marshal

func (m *AskAboutWeatherRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AskAboutWeatherRequest) XXX_Merge

func (m *AskAboutWeatherRequest) XXX_Merge(src proto.Message)

func (*AskAboutWeatherRequest) XXX_Size

func (m *AskAboutWeatherRequest) XXX_Size() int

func (*AskAboutWeatherRequest) XXX_Unmarshal

func (m *AskAboutWeatherRequest) XXX_Unmarshal(b []byte) error

type AskAboutWeatherResponse

type AskAboutWeatherResponse struct {
	Result               string   `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AskAboutWeatherResponse) Descriptor

func (*AskAboutWeatherResponse) Descriptor() ([]byte, []int)

func (*AskAboutWeatherResponse) GetResult

func (m *AskAboutWeatherResponse) GetResult() string

func (*AskAboutWeatherResponse) ProtoMessage

func (*AskAboutWeatherResponse) ProtoMessage()

func (*AskAboutWeatherResponse) Reset

func (m *AskAboutWeatherResponse) Reset()

func (*AskAboutWeatherResponse) String

func (m *AskAboutWeatherResponse) String() string

func (*AskAboutWeatherResponse) XXX_DiscardUnknown

func (m *AskAboutWeatherResponse) XXX_DiscardUnknown()

func (*AskAboutWeatherResponse) XXX_Marshal

func (m *AskAboutWeatherResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AskAboutWeatherResponse) XXX_Merge

func (m *AskAboutWeatherResponse) XXX_Merge(src proto.Message)

func (*AskAboutWeatherResponse) XXX_Size

func (m *AskAboutWeatherResponse) XXX_Size() int

func (*AskAboutWeatherResponse) XXX_Unmarshal

func (m *AskAboutWeatherResponse) XXX_Unmarshal(b []byte) error

type CelciusToFarenheitRequest

type CelciusToFarenheitRequest struct {
	Value                int64    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CelciusToFarenheitRequest) Descriptor

func (*CelciusToFarenheitRequest) Descriptor() ([]byte, []int)

func (*CelciusToFarenheitRequest) GetValue

func (m *CelciusToFarenheitRequest) GetValue() int64

func (*CelciusToFarenheitRequest) ProtoMessage

func (*CelciusToFarenheitRequest) ProtoMessage()

func (*CelciusToFarenheitRequest) Reset

func (m *CelciusToFarenheitRequest) Reset()

func (*CelciusToFarenheitRequest) String

func (m *CelciusToFarenheitRequest) String() string

func (*CelciusToFarenheitRequest) XXX_DiscardUnknown

func (m *CelciusToFarenheitRequest) XXX_DiscardUnknown()

func (*CelciusToFarenheitRequest) XXX_Marshal

func (m *CelciusToFarenheitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CelciusToFarenheitRequest) XXX_Merge

func (m *CelciusToFarenheitRequest) XXX_Merge(src proto.Message)

func (*CelciusToFarenheitRequest) XXX_Size

func (m *CelciusToFarenheitRequest) XXX_Size() int

func (*CelciusToFarenheitRequest) XXX_Unmarshal

func (m *CelciusToFarenheitRequest) XXX_Unmarshal(b []byte) error

type CelciusToFarenheitResponse

type CelciusToFarenheitResponse struct {
	Value                int64    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CelciusToFarenheitResponse) Descriptor

func (*CelciusToFarenheitResponse) Descriptor() ([]byte, []int)

func (*CelciusToFarenheitResponse) GetValue

func (m *CelciusToFarenheitResponse) GetValue() int64

func (*CelciusToFarenheitResponse) ProtoMessage

func (*CelciusToFarenheitResponse) ProtoMessage()

func (*CelciusToFarenheitResponse) Reset

func (m *CelciusToFarenheitResponse) Reset()

func (*CelciusToFarenheitResponse) String

func (m *CelciusToFarenheitResponse) String() string

func (*CelciusToFarenheitResponse) XXX_DiscardUnknown

func (m *CelciusToFarenheitResponse) XXX_DiscardUnknown()

func (*CelciusToFarenheitResponse) XXX_Marshal

func (m *CelciusToFarenheitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CelciusToFarenheitResponse) XXX_Merge

func (m *CelciusToFarenheitResponse) XXX_Merge(src proto.Message)

func (*CelciusToFarenheitResponse) XXX_Size

func (m *CelciusToFarenheitResponse) XXX_Size() int

func (*CelciusToFarenheitResponse) XXX_Unmarshal

func (m *CelciusToFarenheitResponse) XXX_Unmarshal(b []byte) error

type Scale

type Scale int32
const (
	Scale_CELCIUS    Scale = 0
	Scale_FAHRENHEIT Scale = 1
)

func (Scale) EnumDescriptor

func (Scale) EnumDescriptor() ([]byte, []int)

func (Scale) String

func (x Scale) String() string

type ScaleConvClient

type ScaleConvClient interface {
	CelciusToFarenheit(ctx context.Context, in *CelciusToFarenheitRequest, opts ...grpc.CallOption) (*CelciusToFarenheitResponse, error)
}

ScaleConvClient is the client API for ScaleConv service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewScaleConvClient

func NewScaleConvClient(cc *grpc.ClientConn) ScaleConvClient

type ScaleConvServer

type ScaleConvServer interface {
	CelciusToFarenheit(context.Context, *CelciusToFarenheitRequest) (*CelciusToFarenheitResponse, error)
}

ScaleConvServer is the server API for ScaleConv service.

type WeatherClient

type WeatherClient interface {
	AskAboutWeather(ctx context.Context, in *AskAboutWeatherRequest, opts ...grpc.CallOption) (*AskAboutWeatherResponse, error)
}

WeatherClient is the client API for Weather service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWeatherClient

func NewWeatherClient(cc *grpc.ClientConn) WeatherClient

type WeatherServer

type WeatherServer interface {
	AskAboutWeather(context.Context, *AskAboutWeatherRequest) (*AskAboutWeatherResponse, error)
}

WeatherServer is the server API for Weather service.

Jump to

Keyboard shortcuts

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