Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerServiceClient ¶
type CustomerServiceClient struct {
Client pb.CustomerServiceClient
}
CustomerServiceClient implements the gRPC client for CustomerService. It holds the gRPC client that will be used to make remote procedure calls to the CustomerService.
func InitCustomerServiceClient ¶
func InitCustomerServiceClient(url string) (*CustomerServiceClient, error)
InitCustomerServiceClient initializes a new gRPC client for CustomerService. It takes a server URL as input, sets up a gRPC connection, and returns the initialized client.
url: The address of the gRPC server to connect to.
Returns: - A pointer to the initialized CustomerServiceClient. - An error if the connection setup fails.
type UserServiceClient ¶
type UserServiceClient struct {
Client pb.UserServiceClient
}
UserServiceClient implements the gRPC client for UserService. It holds the gRPC client that will be used to make remote procedure calls to the UserService.
func InitUserServiceClient ¶
func InitUserServiceClient(url string) (*UserServiceClient, error)
InitUserServiceClient initializes a new gRPC client for UserService. It takes a server URL as input, sets up a gRPC connection, and returns the initialized client.
url: The address of the gRPC server to connect to.
Returns: - A pointer to the initialized UserServiceClient. - An error if the connection setup fails.