api

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

func NewHandlers

func NewHandlers(
	projectGroupHandler *handler.ProjectGroupHandler,
	staffHandler *handler.StaffHandler,
	loginHandler *handler.LoginHandler,
	projectHandler *handler.ProjectHandler,
	namespaceHandler *handler.NamespaceHandler,
	configHandler *handler.ConfigHandler,
	indexHandler *handler.IndexHandler,
	publishSystem svc_interface.PublishSystem,
	configSvc *svc.ConfigSvc,
	envTestHandler *handler.EnvTestHandler,
) *Handlers

type Server

type Server struct {
	Logger      *zap.Logger
	HttpServer  *http.Server
	GrpcServer  *grpc.Server
	DB          db.Repo
	Cache       cache.Repo
	Storage     storage.Repo
	Trace       *trace.TracerProvider
	HTTPMiddles middleware.Middleware
}

func NewApiServer

func NewApiServer(logger *zap.Logger) (*Server, error)

func (*Server) Route

func (s *Server) Route(c *Handlers, engine core.Engine)

func (*Server) RouteHTML

func (s *Server) RouteHTML(c *Handlers, staticEngine *gin.Engine)

Directories

Path Synopsis
Code generated by gormt.
Code generated by gormt.
Package svc_interface is a generated GoMock package.
Package svc_interface is a generated GoMock package.

Jump to

Keyboard shortcuts

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