gof

package module
v0.0.0-...-f59cc51 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

README

gof

一个简单go框架

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	GrpcSever *zgrpc.GrpcServer
	Mid       []grpc.UnaryServerInterceptor
	Log       *logrus.Logger
	DB        *gorm.DB

	G *gin.Engine
	// contains filtered or unexported fields
}

App server

func New

func New(path string) *App

New init

func (*App) Run

func (s *App) Run() error

Run 运行server

func (*App) Stop

func (s *App) Stop() error

Stop todo

Jump to

Keyboard shortcuts

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