Skip to content

Commit

Permalink
add hook for AfterInit()
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed Oct 4, 2023
1 parent 9602824 commit 799f984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
)

type Hook interface {
AfterInit()
AfterComm(*AfterCommData)
AfterConn(*AfterConnData)
}
Expand Down Expand Up @@ -85,6 +86,7 @@ func loadPlugins() ([]Hook, error) {
continue
}

plug.AfterInit()
plugins = append(plugins, plug)
}

Expand Down

0 comments on commit 799f984

Please sign in to comment.