Documentation ¶
Index ¶
- type Config
- type Server
- func (s *Server) CreateProject(ctx context.Context, req *pb.CreateProjectRequest) (*pb.CreateProjectResponse, error)
- func (s *Server) DeleteProject(ctx context.Context, req *pb.DeleteProjectRequest) (*pb.DeleteProjectResponse, error)
- func (s *Server) GracefulStop()
- func (s *Server) ListProjects(ctx context.Context, req *pb.ListProjectsRequest) (*pb.ListProjectsResponse, error)
- func (s *Server) Start() error
- func (s *Server) Stop()
- func (s *Server) UpdateProject(ctx context.Context, req *pb.UpdateProjectRequest) (*pb.UpdateProjectResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { pb.UnimplementedMetisServer // contains filtered or unexported fields }
Server is a normal server that processes the logic requested by the client.
func (*Server) CreateProject ¶
func (s *Server) CreateProject( ctx context.Context, req *pb.CreateProjectRequest, ) (*pb.CreateProjectResponse, error)
CreateProject creates a new project of the given name.
func (*Server) DeleteProject ¶
func (s *Server) DeleteProject( ctx context.Context, req *pb.DeleteProjectRequest, ) (*pb.DeleteProjectResponse, error)
DeleteProject deletes the given project.
func (*Server) GracefulStop ¶
func (s *Server) GracefulStop()
GracefulStop stops the gRPC server gracefully.
func (*Server) ListProjects ¶
func (s *Server) ListProjects( ctx context.Context, req *pb.ListProjectsRequest, ) (*pb.ListProjectsResponse, error)
ListProjects returns the list of projects.
func (*Server) Stop ¶
func (s *Server) Stop()
Stop stops the gRPC server. It immediately closes all open connections and listeners.
func (*Server) UpdateProject ¶
func (s *Server) UpdateProject( ctx context.Context, req *pb.UpdateProjectRequest, ) (*pb.UpdateProjectResponse, error)
UpdateProject updates the given project.
Click to show internal directories.
Click to hide internal directories.