ginplus

package module
v0.0.0-...-213b989 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

ginplus

Documentation

Overview

Package ginplus @file : app.go @author : china.gdxs@gmail.com @time : 2023/11/7 16:52 @Description:

Package ginplus @file : options.go @author : china.gdxs@gmail.com @time : 2023/11/7 16:54 @Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(opts ...Option) *App

func (App) Run

func (a App) Run() error

func (App) Stop

func (a App) Stop() error

type Option

type Option func(o *options)

func Context

func Context(ctx context.Context) Option

Context with service context.

func Servers

func Servers(srv ...Server) Option

Servers with start & stop server.

func Signal

func Signal(sigs ...os.Signal) Option

Signal with exit signals.

func Timeout

func Timeout(d time.Duration) Option

Timeout with server timeout time

type Server

type Server interface {
	Start(context.Context) error
	Stop(context.Context) error
}

Server 迭代启动关闭统一由CoreServer 管控

Directories

Path Synopsis
cmd
codegen
Package code @file : main.go @author : china.gdxs@gmail.com @time : 2023/12/21 16:14 @Description: error code 错误码生成
Package code @file : main.go @author : china.gdxs@gmail.com @time : 2023/12/21 16:14 @Description: error code 错误码生成
proto
Package proto @file : main.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:01 @Description: proto 生成文件 入口
Package proto @file : main.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:01 @Description: proto 生成文件 入口
proto/add
Package add @file : add.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:13 @Description:
Package add @file : add.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:13 @Description:
proto/server
Package server @file : server.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:04 @Description: created server
Package server @file : server.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:04 @Description: created server
protoc-gen-go-gin
Package main @file : http.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:23 @Description:
Package main @file : http.go @author : china.gdxs@gmail.com @time : 2023/11/7 17:23 @Description:
transport
http
Package http @file : code.go @author : china.gdxs@gmail.com @time : 2023/12/21 15:06 @Description:
Package http @file : code.go @author : china.gdxs@gmail.com @time : 2023/12/21 15:06 @Description:
Package utils @file : p.crypt.go @author : china.gdxs@gmail.com @time : 2024/2/3 16:49 @Description:
Package utils @file : p.crypt.go @author : china.gdxs@gmail.com @time : 2024/2/3 16:49 @Description:
crypt2go
Package crypt2go @file : crypt2go.go @author : china.gdxs@gmail.com @time : 2024/2/3 16:45 @Description:
Package crypt2go @file : crypt2go.go @author : china.gdxs@gmail.com @time : 2024/2/3 16:45 @Description:
crypt2go/ecb
Package ecb @file : ecb.go @author : china.gdxs@gmail.com @time : 2024/2/3 16:45 @Description:
Package ecb @file : ecb.go @author : china.gdxs@gmail.com @time : 2024/2/3 16:45 @Description:
crypt2go/padding
Package padding @file : padding.go @author : china.gdxs@gmail.com @time : 2024/2/3 16:47 @Description:
Package padding @file : padding.go @author : china.gdxs@gmail.com @time : 2024/2/3 16:47 @Description:

Jump to

Keyboard shortcuts

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