client

package
v0.0.0-...-b46bf14 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(client grpc.CountriesClient, country *pb.Country) (*pb.Country, error)

Create creates a country on the server

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

func NewEmpty

func NewEmpty() *emptypb.Empty

func Update

func Update(client grpc.CountriesClient, country *pb.Country) (*pb.Country, error)

Update updates a country on the server

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

Jump to

Keyboard shortcuts

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