Documentation ¶
Index ¶
- func Create(client grpc.CountriesClient, country *pb.Country) (*pb.Country, error)
- func Delete(client grpc.CountriesClient, country *pb.Country) (*pb.StatusResponse, error)
- func ListCountries(client grpc.CountriesClient) ([]*pb.Country, error)
- func NewCountry(name string, alpha2 string, alpha3 string, code string, iso2 string, ...) *pb.Country
- func NewEmpty() *emptypb.Empty
- func Update(client grpc.CountriesClient, country *pb.Country) (*pb.Country, error)
- type AuditServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(client grpc.CountriesClient, country *pb.Country) (*pb.StatusResponse, error)
Delete removed a country definition from the server
func ListCountries ¶
func ListCountries(client grpc.CountriesClient) ([]*pb.Country, error)
ListCountries provides a list of countries from the server
func NewCountry ¶
func NewCountry(name string, alpha2 string, alpha3 string, code string, iso2 string, region string, subRegion string, intermediateRegion string, regionCode string, subRegionCode string, intermediateRegionCode string) *pb.Country
NewCountry A factory method for creating Country objects
Types ¶
type AuditServer ¶
type AuditServer struct { grpc.UnimplementedAuditRecordsServer // contains filtered or unexported fields }
func (AuditServer) Create ¶
func (srv AuditServer) Create(ctx context.Context, auditRecord pb.AuditRecord) (out pb.StatusResponse, err error)
func (AuditServer) Search ¶
func (srv AuditServer) Search(ctx context.Context, criteria pb.AuditRecordSearchRequest, client grpc.AuditRecords_SearchClient) (err error)
Click to show internal directories.
Click to hide internal directories.