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
}
Click to show internal directories.
Click to hide internal directories.