server

package
v0.0.0-...-e433cde Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: BSD-4-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args ...string)

Parse the arguments.

Types

type Server

type Server struct {
	// The main protocol file.
	ProtoFile *env.File

	// The list of files in the current environment.
	LibFiles []*env.File

	// Any errors that are not associated with any file.
	Errors errors.ErrorList
}

func NewServer

func NewServer() *Server

func (*Server) Compile

func (s *Server) Compile(
	protoPath string,
	repoPath string,
	compileOptions []string,
) bool

Compile an Mrpc file.

func (*Server) Gen

func (s *Server) Gen(
	env *typecheck.Data,
)

Initialize the required code generators and build the files.

Jump to

Keyboard shortcuts

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