server

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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

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) Stop

func (s *GRPCServer) Stop(wg *sync.WaitGroup)

Stop the api

func (*GRPCServer) StreamLogs

StreamLogs streams the logs of the minecraft server to the grpc client

Jump to

Keyboard shortcuts

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