server

package
v0.0.0-...-4ab2a0a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	Server       *gin.Engine
	StatusReady  chan bool
	StatusKilled chan bool
	Graph        *graph.Resolver
	ServerPort   string
	AppName      string
}

APIServer is the structure that holds the infrastructure needed on the dependency injection phase.

func NewApp

func NewApp() *APIServer

NewApp initializes the app

func (*APIServer) KillApp

func (a *APIServer) KillApp()

func (*APIServer) RunApp

func (a *APIServer) RunApp()

RunApp initializes the server and consumers

type GraphHandler

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

func NewGraphHandler

func NewGraphHandler(
	server *APIServer,
	articleService services.IArticleService,
	categoryService services.ICategoryService,
) *GraphHandler

func (*GraphHandler) Init

func (gh *GraphHandler) Init(appName string)

Jump to

Keyboard shortcuts

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