Documentation
¶
Index ¶
- type Controller
- type Module
- type NotFoundError
- type OPNsense
- func (opn *OPNsense) Client() *resty.Request
- func (opn *OPNsense) EndpointForModule(module Module) string
- func (opn *OPNsense) EndpointForModuleController(module Module, controller Controller) string
- func (opn *OPNsense) EndpointForPluginControllerMethod(module Module, controller Controller, method string) string
- type ServerError
- type ServerResult
- type TooManyFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller int64
const ( Settings Controller = iota Service Controller = iota )
func (Controller) String ¶
func (s Controller) String() string
type NotFoundError ¶
func (*NotFoundError) Error ¶
func (f *NotFoundError) Error() string
type OPNsense ¶
func (*OPNsense) EndpointForModule ¶
EndpointForModule so basically api/<plugin>
func (*OPNsense) EndpointForModuleController ¶
func (opn *OPNsense) EndpointForModuleController(module Module, controller Controller) string
EndpointForModuleController so basically api/<plugin>/<controller>
func (*OPNsense) EndpointForPluginControllerMethod ¶
func (opn *OPNsense) EndpointForPluginControllerMethod(module Module, controller Controller, method string) string
EndpointForPluginControllerMethod so basically api/<plugin>/<controller>/<method>
type ServerError ¶
type ServerResult ¶
type TooManyFoundError ¶
func (*TooManyFoundError) Error ¶
func (f *TooManyFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.