app

package
v0.0.0-...-630bfab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type App

type App interface {
	Start(ctx context.Context)
	Shutdown(ctx context.Context)
}

func NewGrpc

func NewGrpc(port string, listener net.Listener, dependencies *Dependencies) App

func NewRest

func NewRest(port string, listener net.Listener) App

type Dependencies

type Dependencies struct {
	Todos interfaces.TodosGrpcHandler
}

func NewDependencies

func NewDependencies(todos interfaces.TodosGrpcHandler) *Dependencies

type Grpc

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

func (*Grpc) Shutdown

func (a *Grpc) Shutdown(ctx context.Context)

func (*Grpc) Start

func (a *Grpc) Start(ctx context.Context)

type Rest

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

func (*Rest) Shutdown

func (a *Rest) Shutdown(ctx context.Context)

func (*Rest) Start

func (a *Rest) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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