server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 20 Imported by: 1

Documentation

Overview

Package server provide web engine

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstance

func GetInstance(name string) (string, error)

GetInstance 获取服务得地址和端口

func NewGin

func NewGin() *gin.Engine

NewGin gin engine

func Register

func Register(cfg *config.Nacos, appCfg *config.App)

Register 注册服务

Types

type WebApp

type WebApp struct {
	Gin *gin.Engine
	// contains filtered or unexported fields
}

func NewWeb

func NewWeb(appCfg *config.App) *WebApp

NewWeb 创建一个web app

func (*WebApp) Run

func (a *WebApp) Run()

Run 运行应用

Jump to

Keyboard shortcuts

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