Documentation ¶
Index ¶
- func NewJWT(secret string, subject string, valid int64) (tokenString string, err error)
- type Collection
- type Mediaserver
- type MediaserverMySQL
- func (ms *MediaserverMySQL) CreateMasterUrl(collection, signature, url string, public bool) error
- func (ms *MediaserverMySQL) FindByUrn(urn string) (string, string, error)
- func (ms *MediaserverMySQL) GetCollectionById(id int64) (*Collection, error)
- func (ms *MediaserverMySQL) GetCollectionByName(name string) (*Collection, error)
- func (ms *MediaserverMySQL) GetFulltext(collection, signature string) (string, error)
- func (ms *MediaserverMySQL) GetMetadata(collection, signature string) (*Metadata, error)
- func (ms *MediaserverMySQL) GetOriginalUrn(collection, signature string) (string, error)
- func (ms *MediaserverMySQL) GetUrl(collection, signature, function string) (string, error)
- func (ms *MediaserverMySQL) Init() error
- func (ms *MediaserverMySQL) IsMediaserverURL(url string) (string, string, bool)
- func (ms *MediaserverMySQL) IsPublic(collection, signature string) (bool, error)
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Mediaserver ¶
type Mediaserver interface { IsMediaserverURL(url string) (string, string, bool) GetCollectionByName(name string) (*Collection, error) GetCollectionById(id int64) (*Collection, error) CreateMasterUrl(collection, signature, url string, public bool) error GetMetadata(collection, signature string) (*Metadata, error) GetFulltext(collection, signature string) (string, error) FindByUrn(urn string) (string, string, error) GetOriginalUrn(collection, signature string) (string, error) GetUrl(collection, signature, function string) (string, error) }
type MediaserverMySQL ¶
type MediaserverMySQL struct {
// contains filtered or unexported fields
}
func NewMediaserverMySQL ¶
func (*MediaserverMySQL) CreateMasterUrl ¶
func (ms *MediaserverMySQL) CreateMasterUrl(collection, signature, url string, public bool) error
func (*MediaserverMySQL) FindByUrn ¶
func (ms *MediaserverMySQL) FindByUrn(urn string) (string, string, error)
func (*MediaserverMySQL) GetCollectionById ¶
func (ms *MediaserverMySQL) GetCollectionById(id int64) (*Collection, error)
func (*MediaserverMySQL) GetCollectionByName ¶
func (ms *MediaserverMySQL) GetCollectionByName(name string) (*Collection, error)
func (*MediaserverMySQL) GetFulltext ¶
func (ms *MediaserverMySQL) GetFulltext(collection, signature string) (string, error)
func (*MediaserverMySQL) GetMetadata ¶
func (ms *MediaserverMySQL) GetMetadata(collection, signature string) (*Metadata, error)
func (*MediaserverMySQL) GetOriginalUrn ¶
func (ms *MediaserverMySQL) GetOriginalUrn(collection, signature string) (string, error)
func (*MediaserverMySQL) GetUrl ¶
func (ms *MediaserverMySQL) GetUrl(collection, signature, function string) (string, error)
func (*MediaserverMySQL) Init ¶
func (ms *MediaserverMySQL) Init() error
func (*MediaserverMySQL) IsMediaserverURL ¶
func (ms *MediaserverMySQL) IsMediaserverURL(url string) (string, string, bool)
Click to show internal directories.
Click to hide internal directories.