github.com/rudderlabs/rudder-go-kit@v0.30.0/testhelper/docker/resource/mysql/config.go (about) 1 package mysql 2 3 type Opt func(*Config) 4 5 func WithTag(tag string) Opt { 6 return func(c *Config) { 7 c.Tag = tag 8 } 9 } 10 11 func WithShmSize(shmSize int64) Opt { 12 return func(c *Config) { 13 c.ShmSize = shmSize 14 } 15 } 16 17 type Config struct { 18 Tag string 19 ShmSize int64 20 }