Documentation
¶
Index ¶
- func BasePageToRest(page *entity.PageBase) openapi.Page
- func FormatFromRest(format []openapi.Format) ([]entity.Format, error)
- func FormatToRest(format entity.Format) openapi.Format
- func PageToRest(page *entity.Page) openapi.Page
- func PageToRestWithResults(page *entity.Page) openapi.PageWithResults
- func StatusToRest(s entity.Status) openapi.Status
- type Pages
- type Service
- func (s *Service) AddPage(ctx context.Context, req openapi.OptAddPageReq, params openapi.AddPageParams) (openapi.AddPageRes, error)
- func (s *Service) GetFile(ctx context.Context, params openapi.GetFileParams) (openapi.GetFileRes, error)
- func (s *Service) GetPage(ctx context.Context, params openapi.GetPageParams) (openapi.GetPageRes, error)
- func (s *Service) GetPages(ctx context.Context) (openapi.Pages, error)
- func (s *Service) NewError(_ context.Context, err error) *openapi.ErrorStatusCode
- type UI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PageToRestWithResults ¶
func PageToRestWithResults(page *entity.Page) openapi.PageWithResults
Types ¶
type Service ¶
type Service struct { openapi.UnimplementedHandler // contains filtered or unexported fields }
func NewService ¶
func (*Service) AddPage ¶
func (s *Service) AddPage(ctx context.Context, req openapi.OptAddPageReq, params openapi.AddPageParams) (openapi.AddPageRes, error)
func (*Service) GetFile ¶
func (s *Service) GetFile(ctx context.Context, params openapi.GetFileParams) (openapi.GetFileRes, error)
func (*Service) GetPage ¶
func (s *Service) GetPage(ctx context.Context, params openapi.GetPageParams) (openapi.GetPageRes, error)
Click to show internal directories.
Click to hide internal directories.