Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvatarGen ¶
type AvatarGen struct { }
func (*AvatarGen) GenFromBase64String ¶
func (ag *AvatarGen) GenFromBase64String(avatar string) (*AvatarReader, *perror.PlutoError)
func (*AvatarGen) GenFromGravatar ¶
func (ag *AvatarGen) GenFromGravatar() (*AvatarReader, *perror.PlutoError)
type AvatarReader ¶
type AvatarReader struct { Reader io.ReadCloser Ext string OriginURL string }
type AvatarSaver ¶
type AvatarSaver struct { Bucket string EndPoint string AccessKeyID string AccessKeySecret string CDN string }
func NewAvatarSaver ¶
func NewAvatarSaver(config *config.Config) *AvatarSaver
func (*AvatarSaver) SaveAvatarImageInLocal ¶
func (as *AvatarSaver) SaveAvatarImageInLocal(file io.ReadCloser) (string, error)
func (*AvatarSaver) SaveAvatarImageInOSS ¶
func (as *AvatarSaver) SaveAvatarImageInOSS(reader *AvatarReader) (string, *perror.PlutoError)
Click to show internal directories.
Click to hide internal directories.