diff options
author | Valery Piashchynski <[email protected]> | 2021-02-23 19:00:44 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-02-23 19:00:44 +0300 |
commit | fdbf6a61600745b5cb1022117dcd9b06d392dc84 (patch) | |
tree | c6b7711f4dfa9873415ff0525887917cc521fd7e /plugins/status/interface.go | |
parent | 7dc61c309a34d21630bc1ad53c53211b3dc985de (diff) |
- Remove unneeded mutex from the `http.Workers` method.
- Rename `checker` plugin package to `status`, remove `/v1` endpoint prefix (#557)
- Add static, headers, status, gzip plugins to the `main.go`.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/status/interface.go')
-rw-r--r-- | plugins/status/interface.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/status/interface.go b/plugins/status/interface.go new file mode 100644 index 00000000..0a92bc52 --- /dev/null +++ b/plugins/status/interface.go @@ -0,0 +1,11 @@ +package status + +// Status consists of status code from the service +type Status struct { + Code int +} + +// Checker interface used to get latest status from plugin +type Checker interface { + Status() Status +} |