Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
*service.BaseService
}
Service represents the REST service and embeds the BaseService.
func NewService ¶
func NewService(ctx *cli.Context, baseService *service.BaseService) (*Service, error)
NewService creates and returns a new REST service instance, registering namespaces.
func ToRESTService ¶
func (*Service) Dependencies ¶
func (s *Service) Dependencies() map[service.DependencyName]service.Option
Dependencies injects the service dependencies for the REST service.
func (*Service) GenerateSpecs ¶
GenerateSpecs generates and writes OpenAPI specifications in both JSON and YAML formats.
func (*Service) RegisterNamespaces ¶
Click to show internal directories.
Click to hide internal directories.