generator

package
v0.0.0-...-539f2fd Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gen

type Gen interface {
	GenRgoClientCode(serviceName, idlPath, rgoSrcPath string) error
	GenRgoBaseCode(idlPath, rgoSrcPath string) error
}

type RGOGenerator

type RGOGenerator struct {
	RGOBasePath string

	LspServer *lsp.Server
	// contains filtered or unexported fields
}

func NewRGOGenerator

func NewRGOGenerator(lspServer *lsp.Server, rgoConfig *config.RGOConfig, rgoBasePath string) *RGOGenerator

func (*RGOGenerator) CloneGitRepo

func (rg *RGOGenerator) CloneGitRepo(repoURL, branch, path, commit string) error

func (*RGOGenerator) GenRgoBaseCode

func (rg *RGOGenerator) GenRgoBaseCode(module, serviceName, formatServiceName, idlPath, rgoSrcPath string) error

func (*RGOGenerator) GenRgoClientCode

func (rg *RGOGenerator) GenRgoClientCode(serviceName, formatServiceName, idlPath, rgoSrcPath string) error

func (*RGOGenerator) GenerateRGOCode

func (rg *RGOGenerator) GenerateRGOCode(serviceName, formatServiceName, idlPath, rgoSrcPath string) error

func (*RGOGenerator) IsNullConfig

func (rg *RGOGenerator) IsNullConfig() bool

func (*RGOGenerator) NotifyRGOProgressStart

func (rg *RGOGenerator) NotifyRGOProgressStart(id, message string) error

func (*RGOGenerator) NotifyRGOProgressStop

func (rg *RGOGenerator) NotifyRGOProgressStop(id string) error

func (*RGOGenerator) Run

func (rg *RGOGenerator) Run()

func (*RGOGenerator) SendNotification

func (rg *RGOGenerator) SendNotification(method string, params json.RawMessage) error

func (*RGOGenerator) UpdateGitRepo

func (rg *RGOGenerator) UpdateGitRepo(branch, path, commit string) error

UpdateGitRepo pulls the latest changes from the remote branch and checks out to a specific commit if provided

type RGONotification

type RGONotification struct {
	ID      string `json:"id"`
	Message string `json:"message"`
	Type    string `json:"type"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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