util

package
v0.0.0-...-48d44df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCoverFromVideo

func GetCoverFromVideo(userID int64, filename string, videoFilePath string) (string, error)

func GetFileName

func GetFileName(userID int64, title string) string

func ParseToken

func ParseToken(token *jwt.Token) int64

Types

type OSSClient

type OSSClient struct {
	// contains filtered or unexported fields
}

func GetOSSClient

func GetOSSClient() (*OSSClient, error)

func (*OSSClient) UploadBytes

func (c *OSSClient) UploadBytes(name string, data []byte) (string, error)

func (*OSSClient) UploadFile

func (c *OSSClient) UploadFile(name string, path string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL