location_grpc

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*City) GetCountryID

func (m *City) GetCountryID() int64

func (*City) GetID

func (m *City) GetID() int64

func (*City) GetName

func (m *City) GetName() string

func (*City) ProtoMessage

func (*City) ProtoMessage()

func (*City) Reset

func (m *City) Reset()

func (*City) String

func (m *City) String() string

func (*City) XXX_DiscardUnknown

func (m *City) XXX_DiscardUnknown()

func (*City) XXX_Marshal

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

func (*City) XXX_Merge

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

func (*City) XXX_Size

func (m *City) XXX_Size() int

func (*City) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*CityID) GetID

func (m *CityID) GetID() int64

func (*CityID) ProtoMessage

func (*CityID) ProtoMessage()

func (*CityID) Reset

func (m *CityID) Reset()

func (*CityID) String

func (m *CityID) String() string

func (*CityID) XXX_DiscardUnknown

func (m *CityID) XXX_DiscardUnknown()

func (*CityID) XXX_Marshal

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

func (*CityID) XXX_Merge

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

func (*CityID) XXX_Size

func (m *CityID) XXX_Size() int

func (*CityID) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Country) GetID

func (m *Country) GetID() int64

func (*Country) GetName

func (m *Country) GetName() string

func (*Country) ProtoMessage

func (*Country) ProtoMessage()

func (*Country) Reset

func (m *Country) Reset()

func (*Country) String

func (m *Country) String() string

func (*Country) XXX_DiscardUnknown

func (m *Country) XXX_DiscardUnknown()

func (*Country) XXX_Marshal

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

func (*Country) XXX_Merge

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

func (*Country) XXX_Size

func (m *Country) XXX_Size() int

func (*Country) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*CountryID) GetID

func (m *CountryID) GetID() int64

func (*CountryID) ProtoMessage

func (*CountryID) ProtoMessage()

func (*CountryID) Reset

func (m *CountryID) Reset()

func (*CountryID) String

func (m *CountryID) String() string

func (*CountryID) XXX_DiscardUnknown

func (m *CountryID) XXX_DiscardUnknown()

func (*CountryID) XXX_Marshal

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

func (*CountryID) XXX_Merge

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

func (*CountryID) XXX_Size

func (m *CountryID) XXX_Size() int

func (*CountryID) XXX_Unmarshal

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

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

func (*UnimplementedLocationHandlerServer) GetCountry

Jump to

Keyboard shortcuts

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