Documentation ¶
Index ¶
- func Migrate(db *gorm.DB) error
- func NewDB(conf DBConfig) (*gorm.DB, error)
- func NewGrpcUserService(host string) (userpb.UserServiceClient, error)
- func NewS3Client(url, region, accessKey, secretKey string) *s3.Client
- type DBConfig
- func (c DBConfig) WithHost(host string) DBConfig
- func (c DBConfig) WithName(name string) DBConfig
- func (c DBConfig) WithPass(pass string) DBConfig
- func (c DBConfig) WithPort(port string) DBConfig
- func (c DBConfig) WithSecure(ssl bool) DBConfig
- func (c DBConfig) WithTZ(tz string) DBConfig
- func (c DBConfig) WithUser(user string) DBConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGrpcUserService ¶
func NewGrpcUserService(host string) (userpb.UserServiceClient, error)
func NewS3Client ¶
Types ¶
type DBConfig ¶
type DBConfig struct {
// contains filtered or unexported fields
}
func NewDBConfig ¶
func NewDBConfig() DBConfig
func (DBConfig) WithSecure ¶
Click to show internal directories.
Click to hide internal directories.