Documentation ¶
Index ¶
- type CountryServer
- func (cs *CountryServer) Create(ctx context.Context, country *pb.Country) (*pb.Country, error)
- func (cs *CountryServer) Delete(ctx context.Context, country *pb.Country) (*pb.StatusResponse, error)
- func (cs *CountryServer) List(value *emptypb.Empty, stream grpc.Countries_ListServer) (err error)
- func (cs *CountryServer) Update(ctx context.Context, country *pb.Country) (*pb.Country, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountryServer ¶
type CountryServer struct { grpc.UnimplementedCountriesServer // contains filtered or unexported fields }
CountryServer Is a server that will listen on a random available port specifically used for testing GRPC functions.
func (*CountryServer) Delete ¶
func (cs *CountryServer) Delete(ctx context.Context, country *pb.Country) (*pb.StatusResponse, error)
Delete removes a country from the saved countries list.
func (*CountryServer) List ¶
func (cs *CountryServer) List(value *emptypb.Empty, stream grpc.Countries_ListServer) (err error)
List pulls a list of countries from the saved country list
Click to show internal directories.
Click to hide internal directories.