MCPcopy
hub / github.com/github/gh-ost / OnStartup

Method OnStartup

go/logic/hooks.go:40–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38type CompositeHooks []base.Hooks
39
40func (c CompositeHooks) OnStartup() error {
41 for _, h := range c {
42 if h == nil {
43 continue
44 }
45 if err := h.OnStartup(); err != nil {
46 return err
47 }
48 }
49 return nil
50}
51
52func (c CompositeHooks) OnValidated() error {
53 for _, h := range c {

Calls 1

OnStartupMethod · 0.65

Tested by 3