Documentation ¶
Index ¶
- type AccessType
- type CreateOptions
- type FileInfo
- type Options
- type Storage
- type StorageInstance
- type StoragePlugin
- func (s *StoragePlugin) AppendMiddlewares() []web.MiddlewareFunc
- func (s *StoragePlugin) Instance() interface{}
- func (s *StoragePlugin) Name() string
- func (s *StoragePlugin) OnCreated(z *zepto.Zepto)
- func (s *StoragePlugin) OnZeptoInit(z *zepto.Zepto)
- func (s *StoragePlugin) OnZeptoStart(z *zepto.Zepto)
- func (s *StoragePlugin) OnZeptoStop(z *zepto.Zepto)
- func (s *StoragePlugin) PrependMiddlewares() []web.MiddlewareFunc
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessType ¶
type AccessType int
const ( Public AccessType = iota Private )
func (AccessType) MarshalJSON ¶
func (a AccessType) MarshalJSON() ([]byte, error)
func (AccessType) String ¶
func (a AccessType) String() string
func (*AccessType) UnmarshalJSON ¶
func (a *AccessType) UnmarshalJSON(b []byte) error
type CreateOptions ¶
type FileInfo ¶
type FileInfo struct { AccessType AccessType Key string ContentType string Size int64 Url string }
type StorageInstance ¶
type StorageInstance interface { Storage }
func InstanceFromCtx ¶
func InstanceFromCtx(ctx web.Context) StorageInstance
type StoragePlugin ¶
type StoragePlugin struct {
// contains filtered or unexported fields
}
func NewStoragePlugin ¶
func NewStoragePlugin(opts Options) *StoragePlugin
func (*StoragePlugin) AppendMiddlewares ¶
func (s *StoragePlugin) AppendMiddlewares() []web.MiddlewareFunc
func (*StoragePlugin) Instance ¶
func (s *StoragePlugin) Instance() interface{}
func (*StoragePlugin) Name ¶
func (s *StoragePlugin) Name() string
func (*StoragePlugin) OnCreated ¶
func (s *StoragePlugin) OnCreated(z *zepto.Zepto)
func (*StoragePlugin) OnZeptoInit ¶
func (s *StoragePlugin) OnZeptoInit(z *zepto.Zepto)
func (*StoragePlugin) OnZeptoStart ¶
func (s *StoragePlugin) OnZeptoStart(z *zepto.Zepto)
func (*StoragePlugin) OnZeptoStop ¶
func (s *StoragePlugin) OnZeptoStop(z *zepto.Zepto)
func (*StoragePlugin) PrependMiddlewares ¶
func (s *StoragePlugin) PrependMiddlewares() []web.MiddlewareFunc
type UpdateOptions ¶
type UpdateOptions struct {
Key string
}
Directories ¶
Path | Synopsis |
---|---|
providers
|
|
Package storagemock is a generated GoMock package.
|
Package storagemock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.