http_api_contacts

package
v0.0.0-...-acd6729 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachCar

func ForEachCar(ctx context.Context, apiCli ApiClientIfce, do func(ctx context.Context, entity *pb.Car) error) error

func ForEachDept

func ForEachDept(ctx context.Context, apiCli ApiClientIfce, do func(ctx context.Context, entity *pb.Dept) error) error

func ForEachUser

func ForEachUser(ctx context.Context, apiCli ApiClientIfce, do func(ctx context.Context, entity *pb.User) error) error

Types

type ApiClient

type ApiClient struct {
	ApiBase string
}

func (*ApiClient) SendReq

func (this *ApiClient) SendReq(ctx context.Context, httpReqBuilder *http.RequestBuilder, apiPath string, responseObj interface{}) (httpBodyBytes []byte, err error)

type ApiClientIfce

type ApiClientIfce interface {
	SendReq(ctx context.Context, httpReqBuilder *http.RequestBuilder, apiPath string, responseObj interface{}) (httpBodyByte []byte, err error)
}

func ApiClientNew

func ApiClientNew(apiBasePath string) ApiClientIfce

type CarCount

type CarCount struct {
	// contains filtered or unexported fields
}

func CarCountNew

func CarCountNew(entity *pb.Car) *CarCount

func (*CarCount) ExecBy

func (this *CarCount) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CountNumber, error)

type CarCreate

type CarCreate struct {
	// contains filtered or unexported fields
}

func CarCreateNew

func CarCreateNew(entity *pb.Car) *CarCreate

func (*CarCreate) ExecBy

func (this *CarCreate) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CarId, error)

type CarDelete

type CarDelete struct {
	// contains filtered or unexported fields
}

func CarDeleteNew

func CarDeleteNew(entity *pb.CarId) *CarDelete

func (*CarDelete) ExecBy

func (this *CarDelete) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type CarFind

type CarFind struct {
	// contains filtered or unexported fields
}

func CarFindNew

func CarFindNew(entity *pb.CarPageQuery) *CarFind

func (*CarFind) ExecBy

func (this *CarFind) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CarWithCount, error)

type CarFindById

type CarFindById struct {
	// contains filtered or unexported fields
}

func CarFindByIdNew

func CarFindByIdNew(entity *pb.CarId) *CarFindById

func (*CarFindById) ExecBy

func (this *CarFindById) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.Car, error)

type CarUpdate

type CarUpdate struct {
	// contains filtered or unexported fields
}

func CarUpdateNew

func CarUpdateNew(entity *pb.Car) *CarUpdate

func (*CarUpdate) ExecBy

func (this *CarUpdate) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type DeptAddUser

type DeptAddUser struct {
	// contains filtered or unexported fields
}

func DeptAddUserNew

func DeptAddUserNew(entity *pb.DeptAddUserReq) *DeptAddUser

func (*DeptAddUser) ExecBy

func (this *DeptAddUser) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserId, error)

type DeptAddUserById

type DeptAddUserById struct {
	// contains filtered or unexported fields
}

func DeptAddUserByIdNew

func DeptAddUserByIdNew(entity *pb.DeptIdAndUserId) *DeptAddUserById

func (*DeptAddUserById) ExecBy

func (this *DeptAddUserById) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type DeptCount

type DeptCount struct {
	// contains filtered or unexported fields
}

func DeptCountNew

func DeptCountNew(entity *pb.Dept) *DeptCount

func (*DeptCount) ExecBy

func (this *DeptCount) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CountNumber, error)

type DeptCreate

type DeptCreate struct {
	// contains filtered or unexported fields
}

func DeptCreateNew

func DeptCreateNew(entity *pb.Dept) *DeptCreate

func (*DeptCreate) ExecBy

func (this *DeptCreate) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.DeptId, error)

type DeptDelete

type DeptDelete struct {
	// contains filtered or unexported fields
}

func DeptDeleteNew

func DeptDeleteNew(entity *pb.DeptId) *DeptDelete

func (*DeptDelete) ExecBy

func (this *DeptDelete) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type DeptFind

type DeptFind struct {
	// contains filtered or unexported fields
}

func DeptFindNew

func DeptFindNew(entity *pb.DeptPageQuery) *DeptFind

func (*DeptFind) ExecBy

func (this *DeptFind) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.DeptWithCount, error)

type DeptFindById

type DeptFindById struct {
	// contains filtered or unexported fields
}

func DeptFindByIdNew

func DeptFindByIdNew(entity *pb.DeptId) *DeptFindById

func (*DeptFindById) ExecBy

func (this *DeptFindById) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.Dept, error)

type DeptFindUsers

type DeptFindUsers struct {
	// contains filtered or unexported fields
}

func DeptFindUsersNew

func DeptFindUsersNew(entity *pb.DeptFindUsersReq) *DeptFindUsers

func (*DeptFindUsers) ExecBy

func (this *DeptFindUsers) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.DeptFindUsersRes, error)

type DeptRemoveUser

type DeptRemoveUser struct {
	// contains filtered or unexported fields
}

func DeptRemoveUserNew

func DeptRemoveUserNew(entity *pb.DeptRemoveUserReq) *DeptRemoveUser

func (*DeptRemoveUser) ExecBy

func (this *DeptRemoveUser) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type DeptUpdate

type DeptUpdate struct {
	// contains filtered or unexported fields
}

func DeptUpdateNew

func DeptUpdateNew(entity *pb.Dept) *DeptUpdate

func (*DeptUpdate) ExecBy

func (this *DeptUpdate) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type UserAddCar

type UserAddCar struct {
	// contains filtered or unexported fields
}

func UserAddCarNew

func UserAddCarNew(entity *pb.Car) *UserAddCar

func (*UserAddCar) ExecBy

func (this *UserAddCar) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CarId, error)

type UserAddCarById

type UserAddCarById struct {
	// contains filtered or unexported fields
}

func UserAddCarByIdNew

func UserAddCarByIdNew(entity *pb.UserIdAndCarId) *UserAddCarById

func (*UserAddCarById) ExecBy

func (this *UserAddCarById) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type UserCount

type UserCount struct {
	// contains filtered or unexported fields
}

func UserCountNew

func UserCountNew(entity *pb.User) *UserCount

func (*UserCount) ExecBy

func (this *UserCount) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CountNumber, error)

type UserCreate

type UserCreate struct {
	// contains filtered or unexported fields
}

func UserCreateNew

func UserCreateNew(entity *pb.User) *UserCreate

func (*UserCreate) ExecBy

func (this *UserCreate) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserId, error)

type UserDelete

type UserDelete struct {
	// contains filtered or unexported fields
}

func UserDeleteNew

func UserDeleteNew(entity *pb.UserId) *UserDelete

func (*UserDelete) ExecBy

func (this *UserDelete) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type UserFind

type UserFind struct {
	// contains filtered or unexported fields
}

func UserFindNew

func UserFindNew(entity *pb.UserPageQuery) *UserFind

func (*UserFind) ExecBy

func (this *UserFind) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserWithCount, error)

type UserFindById

type UserFindById struct {
	// contains filtered or unexported fields
}

func UserFindByIdNew

func UserFindByIdNew(entity *pb.UserId) *UserFindById

func (*UserFindById) ExecBy

func (this *UserFindById) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.User, error)

type UserFindCars

type UserFindCars struct {
	// contains filtered or unexported fields
}

func UserFindCarsNew

func UserFindCarsNew(entity *pb.UserFindCarsReq) *UserFindCars

func (*UserFindCars) ExecBy

func (this *UserFindCars) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserFindCarsRes, error)

type UserFindDepts

type UserFindDepts struct {
	// contains filtered or unexported fields
}

func UserFindDeptsNew

func UserFindDeptsNew(entity *pb.UserFindDeptsReq) *UserFindDepts

func (*UserFindDepts) ExecBy

func (this *UserFindDepts) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserFindDeptsRes, error)

type UserRemoveCar

type UserRemoveCar struct {
	// contains filtered or unexported fields
}

func UserRemoveCarNew

func UserRemoveCarNew(entity *pb.UserRemoveCarReq) *UserRemoveCar

func (*UserRemoveCar) ExecBy

func (this *UserRemoveCar) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

type UserUpdate

type UserUpdate struct {
	// contains filtered or unexported fields
}

func UserUpdateNew

func UserUpdateNew(entity *pb.User) *UserUpdate

func (*UserUpdate) ExecBy

func (this *UserUpdate) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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