endpoints

package
v0.0.0-...-e8f09b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 NewService() (*Service, error)

func (*Service) AddRestEndpoint

func (s *Service) AddRestEndpoint(endpoint models.RestEndpoint) error

func (*Service) Close

func (s *Service) Close() error

func (*Service) DeleteAllRestEndpoints

func (s *Service) DeleteAllRestEndpoints() error

func (*Service) DeleteRestEndpoint

func (s *Service) DeleteRestEndpoint(method string, path string) (found bool, err error)

func (*Service) GetAllRestEndpoints

func (s *Service) GetAllRestEndpoints() ([]models.RestEndpoint, error)

func (*Service) GetRestEndpoint

func (s *Service) GetRestEndpoint(method string, path string) (*models.RestEndpoint, error)

func (*Service) UpdateRestEndpoint

func (s *Service) UpdateRestEndpoint(method string, path string, endpoint models.RestEndpoint) (found bool, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL