server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPreMutationScriptError  = errors.New("error running pre-mutation script")
	ErrPostMutationScriptError = errors.New("error running post-mutation script")
	ErrInternalCompilerError   = errors.New("error compiling configs")
)

Functions

func Command

func Command() (cli.Command, error)

Command is a cli.CommandFactory

func WithCompiler

func WithCompiler(c *lib.Compiler) func(*ProtoconfMutationServer)

Types

type MutationServerOption

type MutationServerOption func(*ProtoconfMutationServer)

type ProtoconfMutationServer

type ProtoconfMutationServer struct {
	protoconf_pb.UnimplementedProtoconfMutationServiceServer
	protoconf_pb.UnimplementedProtoconfMutationReportServiceServer

	PreMutationScript  string
	PostMutationScript string
	// contains filtered or unexported fields
}

func NewProtoconfMutationServer

func NewProtoconfMutationServer(protoconfRoot string, opts ...MutationServerOption) *ProtoconfMutationServer

func (*ProtoconfMutationServer) GenReflectionUI

func (s *ProtoconfMutationServer) GenReflectionUI(ctx context.Context, rpcServer *grpc.Server, httpServer *http.Server) error

func (*ProtoconfMutationServer) Init

func (s *ProtoconfMutationServer) Init(rpcServer *grpc.Server)

func (*ProtoconfMutationServer) Put

func (*ProtoconfMutationServer) StoreReport

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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