config.go 700 字节
package oss

type OssConfig struct {
	accessID    string
	accessKey   string
	roleAcs     string
	endPoint    string
	bucketName  string
	callbackUrl string
	sessionName string
	hostStr     string //host的格式为 bucketname.endpoint
}

func NewOssConfig() *OssConfig {
	return &OssConfig{
		accessID:    "",
		accessKey:   "",
		roleAcs:     "",
		bucketName:  "",
		callbackUrl: "",
		endPoint:    "",
		sessionName: "",
		hostStr:     "",
	}
}

func (config *OssConfig) SetBucketName(name string) {
	config.bucketName = name
}

func (config *OssConfig) SetCallbackUrl(url string) {
	config.callbackUrl = url
}

func (config *OssConfig) SetSessionName(name string) {
	config.sessionName = name
}