MCPcopy Create free account
hub / github.com/astercloud/aster / DefaultOptions

Function DefaultOptions

pkg/asteros/options.go:37–50  ·  view source on GitHub ↗

DefaultOptions 返回默认配置

()

Source from the content-addressed store, hash-verified

35
36// DefaultOptions 返回默认配置
37func DefaultOptions() *Options {
38 return &Options{
39 Name: "AsterOS",
40 Port: 8080,
41 AutoDiscover: true,
42 APIPrefix: "",
43 EnableCORS: true,
44 EnableAuth: false,
45 EnableMetrics: true,
46 EnableHealth: true,
47 EnableLogging: true,
48 LogLevel: "info",
49 }
50}
51
52// Validate 验证配置
53func (o *Options) Validate() error {

Callers 3

NewFunction · 0.85
TestNewFunction · 0.85
TestDefaultOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNewFunction · 0.68
TestDefaultOptionsFunction · 0.68