Documentation
¶
Index ¶
- func FormatURL[T mycontent.Data](baseURL string, params []string) func(t T)
- func New[T mycontent.Data](uc mycontent.Usecase[T], baseURL string, refParams []string) *service[T]
- func NewAttachment(base mycontent.UsecaseAttachment[*entity.Attachment], baseURL string, ...) *uploadService
- type Authorization
- type AuthorizationFactory
- type PostProcess
- type URLFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAttachment ¶
func NewAttachment( base mycontent.UsecaseAttachment[*entity.Attachment], baseURL string, refParams []string, cacheControl string, ) *uploadService
Behave exatctly like the other API, but Can only do repository "Put" via Upload API
Types ¶
type Authorization ¶
type Authorization[T mycontent.Data] interface { // Custom post authorization CanPost(t T) *types.CommonError // Can read this entity? CanGet(t T) *types.CommonError // Can delete this entity? CanDelete(t T) *types.CommonError // Can delete parameter CheckBeforeDelete(namespace string, refIDs []string, ID string) *types.CommonError // Check get parameter CheckBeforeGet(namespace string, refIDs []string, ID string) *types.CommonError }
Authorization for mycontent
type AuthorizationFactory ¶
type AuthorizationFactory[T mycontent.Data] func(ctx context.Context, token string) (Authorization[T], *types.CommonError)
type PostProcess ¶
Click to show internal directories.
Click to hide internal directories.