slark

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

slark

base framework lib

框架底层依赖:grpc + gin

TODO list:

3.配置中心特性

5.benchmark

6.配置热更新 --> 用于配置中心? 【1】在加载配置文件之后,启动一个线程。

【2】该线程定时监听这个配置文件是否有改动。

【3】如果配置文件有变动,就重新加载一下。

【4】重新加载之后通知需要使用这些配置的应用程序(进程或线程),实际上就是刷新内存中配置。

7.服务治理

8.copygen

全面拥抱k8s,暂不支持自定义注册中心

newCtx = context.WithValue(ctx.Request.Context(), header[0], header[1]) header[0], header[1]对应x-token key, value传递

Documentation

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 NewApp

func NewApp(opts ...Option) *App

func (*App) Run

func (a *App) Run() error

type Option added in v1.3.6

type Option func(*App)

func Server added in v1.3.6

func Server(srv ...transport.Server) Option

func Signal added in v1.3.6

func Signal(signals ...os.Signal) Option

Directories

Path Synopsis
cmd module
slark Module
pkg
third_party
protoc-gen-openapiv2/internal/genopenapi
Package genopenapi provides a code generator for OpenAPI v2.
Package genopenapi provides a code generator for OpenAPI v2.
ws

Jump to

Keyboard shortcuts

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