Documentation ¶
Index ¶
- type Service
- func (s *Service) AddRestEndpoint(endpoint models.RestEndpoint) error
- func (s *Service) Close() error
- func (s *Service) DeleteAllRestEndpoints() error
- func (s *Service) DeleteRestEndpoint(method string, path string) (found bool, err error)
- func (s *Service) GetAllRestEndpoints() ([]models.RestEndpoint, error)
- func (s *Service) GetRestEndpoint(method string, path string) (*models.RestEndpoint, error)
- func (s *Service) UpdateRestEndpoint(method string, path string, endpoint models.RestEndpoint) (found bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AddRestEndpoint ¶
func (s *Service) AddRestEndpoint(endpoint models.RestEndpoint) error
func (*Service) DeleteAllRestEndpoints ¶
func (*Service) DeleteRestEndpoint ¶
func (*Service) GetAllRestEndpoints ¶
func (s *Service) GetAllRestEndpoints() ([]models.RestEndpoint, error)
func (*Service) GetRestEndpoint ¶
func (*Service) UpdateRestEndpoint ¶
Click to show internal directories.
Click to hide internal directories.