Documentation ¶
Index ¶
- type GRPCServer
- func (s *GRPCServer) SendCommand(req *qugrpc.SendCommandRequest, srv qugrpc.QuMineServer_SendCommandServer) error
- func (s *GRPCServer) Start(ctx context.Context, wg *sync.WaitGroup)
- func (s *GRPCServer) Stop(wg *sync.WaitGroup)
- func (s *GRPCServer) StreamLogs(req *qugrpc.LogStreamRequest, srv qugrpc.QuMineServer_StreamLogsServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
type GRPCServer struct { Wrapper *wrapper.Wrapper Addr string // contains filtered or unexported fields }
GRPCServer represents the grpc server
func NewServer ¶
func NewServer(w *wrapper.Wrapper) *GRPCServer
NewServer creates a new GRPCServer instance
func (*GRPCServer) SendCommand ¶
func (s *GRPCServer) SendCommand(req *qugrpc.SendCommandRequest, srv qugrpc.QuMineServer_SendCommandServer) error
SendCommand sends a command to the minecraft server
func (*GRPCServer) Start ¶
func (s *GRPCServer) Start(ctx context.Context, wg *sync.WaitGroup)
Start the GRPCServer
func (*GRPCServer) StreamLogs ¶
func (s *GRPCServer) StreamLogs(req *qugrpc.LogStreamRequest, srv qugrpc.QuMineServer_StreamLogsServer) error
StreamLogs streams the logs of the minecraft server to the grpc client
Click to show internal directories.
Click to hide internal directories.