modulepackage
0.0.0-20241008100327-50a850cf9b5b
Repository: https://github.com/go-fox/fox.git
Documentation: pkg.go.dev
# README
fox
微服务框架
# Packages
No description provided by the author
Package codec MIT License
# Copyright (c) 2024 go-fox Author https://github.com/go-fox/fox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Package config MIT License
# Copyright (c) 2024 go-fox Author https://github.com/go-fox/fox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Package errors MIT License
# Copyright (c) 2024 go-fox Author https://github.com/go-fox/fox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Package middleware MIT License
# Copyright (c) 2024 go-fox Author https://github.com/go-fox/fox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
No description provided by the author
Package selector MIT License
# Copyright (c) 2024 go-fox Author https://github.com/go-fox/fox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Package transport MIT License
# Copyright (c) 2024 go-fox Author https://github.com/go-fox/fox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# Functions
AddHooks add hooks.
AppCommit 返回git提交的hash值.
AppId 当前应用唯一标识.
AppName 应用名称.
AppRegion 部属地域.
AppVersion 应用版本.
AppVersionSting 获取版本字符串 (format is "Version/CommitHash" or only "Version" if CommitHash is empty).
AppZone 应用部属的分区.
BuildTime 构建时间.
Context app context.
FromContext 从上下文中获取服务信息.
GoVersion go的运行版本.
HideBanner hide print banner.
Hooks with hooks options.
HostName 主机名.
Id app id.
Logger with logger.
MaxProc with max procs.
Metadata with app metadata.
Name app name.
New create application.
NewContext 创建附带服务信息的上下文.
PrintVersion print version.
Region with app Region.
RegistrarTimeout with registry.Registrar timeout.
Registry with registry.
Server with server.
SetAppRegion 设置部属区域.
SetAppZone set app zone.
StartTime 项目启动时间.
StopTimeout with stop timeout.
Version with an app version.
VersionFox fox version.
Zone with app zone.
# Constants
AfterStart hook enum.
AfterStop hook enum.
BeforeStart hook enum.
BeforeStop hook enum.
ModName mod name.
# Structs
Application application.
# Interfaces
AppInfo 应用信息.