server

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(app Application) error

Run runs the given application.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application abstracts all the functional components to be run by the server.

func Setup

func Setup(cfg conf.ServerConfig) (Application, error)

Setup creates a new application using the given ServerConfig.

func (Application) Run

func (app Application) Run(ctx context.Context) error

Run serves the application services.

func (Application) Shutdown

func (app Application) Shutdown(ctx context.Context) error

Shutdown releases any held resources by dependencies of this Application.

type Services

type Services struct {
	TasksWriter tasksv1.TasksWriterServiceServer
	TasksReader tasksv1.TasksReaderServiceServer
	Health      *health.Server
}

Services groups all the services exposed by a single gRPC Server.

Jump to

Keyboard shortcuts

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