Documentation
¶
Index ¶
- func RegisterLocationHandlerServer(s *grpc.Server, srv LocationHandlerServer)
- type City
- func (*City) Descriptor() ([]byte, []int)
- func (m *City) GetCountryID() int64
- func (m *City) GetID() int64
- func (m *City) GetName() string
- func (*City) ProtoMessage()
- func (m *City) Reset()
- func (m *City) String() string
- func (m *City) XXX_DiscardUnknown()
- func (m *City) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *City) XXX_Merge(src proto.Message)
- func (m *City) XXX_Size() int
- func (m *City) XXX_Unmarshal(b []byte) error
- type CityID
- func (*CityID) Descriptor() ([]byte, []int)
- func (m *CityID) GetID() int64
- func (*CityID) ProtoMessage()
- func (m *CityID) Reset()
- func (m *CityID) String() string
- func (m *CityID) XXX_DiscardUnknown()
- func (m *CityID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CityID) XXX_Merge(src proto.Message)
- func (m *CityID) XXX_Size() int
- func (m *CityID) XXX_Unmarshal(b []byte) error
- type Country
- func (*Country) Descriptor() ([]byte, []int)
- func (m *Country) GetID() int64
- func (m *Country) GetName() string
- func (*Country) ProtoMessage()
- func (m *Country) Reset()
- func (m *Country) String() string
- func (m *Country) XXX_DiscardUnknown()
- func (m *Country) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Country) XXX_Merge(src proto.Message)
- func (m *Country) XXX_Size() int
- func (m *Country) XXX_Unmarshal(b []byte) error
- type CountryID
- func (*CountryID) Descriptor() ([]byte, []int)
- func (m *CountryID) GetID() int64
- func (*CountryID) ProtoMessage()
- func (m *CountryID) Reset()
- func (m *CountryID) String() string
- func (m *CountryID) XXX_DiscardUnknown()
- func (m *CountryID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CountryID) XXX_Merge(src proto.Message)
- func (m *CountryID) XXX_Size() int
- func (m *CountryID) XXX_Unmarshal(b []byte) error
- type LocationHandlerClient
- type LocationHandlerServer
- type UnimplementedLocationHandlerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLocationHandlerServer ¶
func RegisterLocationHandlerServer(s *grpc.Server, srv LocationHandlerServer)
Types ¶
type City ¶
type City struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` CountryID int64 `protobuf:"varint,2,opt,name=CountryID,proto3" json:"CountryID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*City) Descriptor ¶
func (*City) GetCountryID ¶
func (*City) ProtoMessage ¶
func (*City) ProtoMessage()
func (*City) XXX_DiscardUnknown ¶
func (m *City) XXX_DiscardUnknown()
func (*City) XXX_Unmarshal ¶
type CityID ¶
type CityID struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CityID) Descriptor ¶
func (*CityID) ProtoMessage ¶
func (*CityID) ProtoMessage()
func (*CityID) XXX_DiscardUnknown ¶
func (m *CityID) XXX_DiscardUnknown()
func (*CityID) XXX_Marshal ¶
func (*CityID) XXX_Unmarshal ¶
type Country ¶
type Country struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Country) Descriptor ¶
func (*Country) ProtoMessage ¶
func (*Country) ProtoMessage()
func (*Country) XXX_DiscardUnknown ¶
func (m *Country) XXX_DiscardUnknown()
func (*Country) XXX_Marshal ¶
func (*Country) XXX_Unmarshal ¶
type CountryID ¶
type CountryID struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CountryID) Descriptor ¶
func (*CountryID) ProtoMessage ¶
func (*CountryID) ProtoMessage()
func (*CountryID) XXX_DiscardUnknown ¶
func (m *CountryID) XXX_DiscardUnknown()
func (*CountryID) XXX_Marshal ¶
func (*CountryID) XXX_Unmarshal ¶
type LocationHandlerClient ¶
type LocationHandlerClient interface { GetCountry(ctx context.Context, in *CountryID, opts ...grpc.CallOption) (*Country, error) GetCity(ctx context.Context, in *CityID, opts ...grpc.CallOption) (*City, error) }
LocationHandlerClient is the client API for LocationHandler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLocationHandlerClient ¶
func NewLocationHandlerClient(cc *grpc.ClientConn) LocationHandlerClient
type LocationHandlerServer ¶
type LocationHandlerServer interface { GetCountry(context.Context, *CountryID) (*Country, error) GetCity(context.Context, *CityID) (*City, error) }
LocationHandlerServer is the server API for LocationHandler service.
type UnimplementedLocationHandlerServer ¶
type UnimplementedLocationHandlerServer struct { }
UnimplementedLocationHandlerServer can be embedded to have forward compatible implementations.
func (*UnimplementedLocationHandlerServer) GetCountry ¶
Click to show internal directories.
Click to hide internal directories.