client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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