Documentation ¶
Index ¶
- Variables
- type Server
- func (s *Server) CreateClient(ctx context.Context, r *client.CreateClientRequest) (*client.GetClientResponse, error)
- func (s *Server) DeleteClientByUUID(ctx context.Context, r *client.DeleteClientByUUIDRequest) (*client.DeleteClientResponse, error)
- func (s *Server) GetClientByUUID(ctx context.Context, r *client.GetClientByUUIDRequest) (*client.GetClientResponse, error)
- func (s *Server) GetClients(ctx context.Context, r *client.GetClientsRequest) (*client.GetClientsResponse, error)
- func (s *Server) ListenGRPC(port int) error
- func (s *Server) UpdateClientByUUID(ctx context.Context, r *client.UpdateClientByUUIDRequest) (*client.GetClientResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClientNotFound = errors.New("client not found")
)
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { client.UnimplementedClientServiceServer // contains filtered or unexported fields }
func (*Server) CreateClient ¶
func (s *Server) CreateClient(ctx context.Context, r *client.CreateClientRequest) (*client.GetClientResponse, error)
func (*Server) DeleteClientByUUID ¶
func (s *Server) DeleteClientByUUID(ctx context.Context, r *client.DeleteClientByUUIDRequest) (*client.DeleteClientResponse, error)
func (*Server) GetClientByUUID ¶
func (s *Server) GetClientByUUID(ctx context.Context, r *client.GetClientByUUIDRequest) (*client.GetClientResponse, error)
func (*Server) GetClients ¶
func (s *Server) GetClients(ctx context.Context, r *client.GetClientsRequest) (*client.GetClientsResponse, error)
func (*Server) ListenGRPC ¶
func (*Server) UpdateClientByUUID ¶
func (s *Server) UpdateClientByUUID(ctx context.Context, r *client.UpdateClientByUUIDRequest) (*client.GetClientResponse, error)
Click to show internal directories.
Click to hide internal directories.