diff --git a/.trunk/.gitignore b/.trunk/.gitignore index 97108a4..507283d 100644 --- a/.trunk/.gitignore +++ b/.trunk/.gitignore @@ -1,2 +1,3 @@ *out -*logs \ No newline at end of file +*logs +external diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index a9805aa..7e5b940 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -1,6 +1,6 @@ version: 0.1 cli: - version: 0.15.0-beta + version: 0.15.1-beta lint: enabled: - actionlint@1.6.13 diff --git a/CHANGELOG.md b/CHANGELOG.md index ba2f31b..1bd2461 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [v0.5.3] - 2022-07-27 (Beta) + +## Features + +- Adding the `GetHandlerTable` function to the server which allows us to retrieve the handler table from the server + ## [v0.5.2] - 2022-07-22 (Beta) ## Features @@ -288,7 +294,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Initial Release of Frisbee -[unreleased]: https://github.com/loopholelabs/frisbee/compare/v0.5.2...HEAD +[unreleased]: https://github.com/loopholelabs/frisbee/compare/v0.5.3...HEAD +[v0.5.3]: https://github.com/loopholelabs/frisbee/compare/v0.5.2...v0.5.3 [v0.5.2]: https://github.com/loopholelabs/frisbee/compare/v0.5.1...v0.5.2 [v0.5.1]: https://github.com/loopholelabs/frisbee/compare/v0.5.0...v0.5.1 [v0.5.0]: https://github.com/loopholelabs/frisbee/compare/v0.4.6...v0.5.0 diff --git a/server.go b/server.go index 9b751f5..6d13b45 100644 --- a/server.go +++ b/server.go @@ -141,6 +141,13 @@ func (s *Server) SetHandlerTable(handlerTable HandlerTable) error { return nil } +// GetHandlerTable gets the handler table for the server. +// +// This function should not be called once the server has started. +func (s *Server) GetHandlerTable() HandlerTable { + return s.handlerTable +} + // Start will start the frisbee server and its reactor goroutines // to receive and handle incoming connections. If the baseContext, ConnContext, // onClosed, OnShutdown, or preWrite functions have not been defined, it will