app

package
v0.0.0-...-4507b72 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	HttpServer *http.Server
	GrpcServer *grpc.Server
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication(
	processRepository processRepository,
	diagrammRepository diagrammRepository,
	frontUser frontUser,
	cnf config.Config,
) *Application

func (*Application) Init

func (a *Application) Init(appCtx context.Context, appCancel context.CancelFunc, fsSPA embed.FS, fsVersion embed.FS) error

func (*Application) Start

func (a *Application) Start()
type helloServer struct {
	pb.UnimplementedGreeterServer
}
func (*helloServer) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {
	fmt.Printf("sayHello: %v\r\n", in.Name)
	return &pb.HelloReply{Message: "Hello " + in.GetName()}, nil
}

Jump to

Keyboard shortcuts

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