services

package
v0.0.0-...-037d887 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWeatherServiceServer

func RegisterWeatherServiceServer(s *grpc.Server, srv WeatherServiceServer)

Types

type LocationAndDate

type LocationAndDate struct {
	Location             string   `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	Date                 string   `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The message containing the location and date

func (*LocationAndDate) Descriptor

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

func (*LocationAndDate) GetDate

func (m *LocationAndDate) GetDate() string

func (*LocationAndDate) GetLocation

func (m *LocationAndDate) GetLocation() string

func (*LocationAndDate) ProtoMessage

func (*LocationAndDate) ProtoMessage()

func (*LocationAndDate) Reset

func (m *LocationAndDate) Reset()

func (*LocationAndDate) String

func (m *LocationAndDate) String() string

func (*LocationAndDate) XXX_DiscardUnknown

func (m *LocationAndDate) XXX_DiscardUnknown()

func (*LocationAndDate) XXX_Marshal

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

func (*LocationAndDate) XXX_Merge

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

func (*LocationAndDate) XXX_Size

func (m *LocationAndDate) XXX_Size() int

func (*LocationAndDate) XXX_Unmarshal

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

type Weather

type Weather struct {
	Data                 map[string]string `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

The response message containing weather data

func (*Weather) Descriptor

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

func (*Weather) GetData

func (m *Weather) GetData() map[string]string

func (*Weather) ProtoMessage

func (*Weather) ProtoMessage()

func (*Weather) Reset

func (m *Weather) Reset()

func (*Weather) String

func (m *Weather) String() string

func (*Weather) XXX_DiscardUnknown

func (m *Weather) XXX_DiscardUnknown()

func (*Weather) XXX_Marshal

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

func (*Weather) XXX_Merge

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

func (*Weather) XXX_Size

func (m *Weather) XXX_Size() int

func (*Weather) XXX_Unmarshal

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

type WeatherServiceClient

type WeatherServiceClient interface {
	// Retrieve the weather
	GetWeather(ctx context.Context, in *LocationAndDate, opts ...grpc.CallOption) (*Weather, error)
}

WeatherServiceClient is the client API for WeatherService service.

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

func NewWeatherServiceClient

func NewWeatherServiceClient(cc *grpc.ClientConn) WeatherServiceClient

type WeatherServiceServer

type WeatherServiceServer interface {
	// Retrieve the weather
	GetWeather(context.Context, *LocationAndDate) (*Weather, error)
}

WeatherServiceServer is the server API for WeatherService service.

Jump to

Keyboard shortcuts

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