internal

package
v0.0.0-...-6b52b4a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request)

func Init

func Init(ctx context.Context, opts ...Option) (func(), error)

Init application initialization

func InitHTTPServer

func InitHTTPServer(ctx context.Context)

InitHTTPServer 初始化http服务

func InitLogger

func InitLogger() (func(), error)

InitLogger initialize the log module

func Run

func Run(ctx context.Context, opts ...Option) error

Run 运行服务

Types

type Option

type Option func(*options)

Option Defining configuration items

func SetConfigFile

func SetConfigFile(s string) Option

SetConfigFile setting the configuration file

func SetVersion

func SetVersion(s string) Option

SetVersion set version number

Directories

Path Synopsis
dao

Jump to

Keyboard shortcuts

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