Documentation ¶
Overview ¶
Code generated by dingo; DO NOT EDIT
Index ¶
- Variables
- type Container
- func (container *Container) GetAFunc() func(int, int) (bool, bool)
- func (container *Container) GetClock() clockwork.Clock
- func (container *Container) GetCustomerWelcome() *CustomerWelcome
- func (container *Container) GetDependsOnTime() time.Time
- func (container *Container) GetHTTPSignerClient() *HTTPSignerClient
- func (container *Container) GetNow() time.Time
- func (container *Container) GetOtherPkg() *go_sub_pkg.Person
- func (container *Container) GetOtherPkg2() go_sub_pkg.Greeter
- func (container *Container) GetOtherPkg3() go_sub_pkg.Person
- func (container *Container) GetParsedTime(value string) time.Time
- func (container *Container) GetSendEmail() EmailSender
- func (container *Container) GetSendEmailError() *SendEmail
- func (container *Container) GetSigner(req *http.Request) *Signer
- func (container *Container) GetSomeEnv() string
- func (container *Container) GetWhatsTheTime() *WhatsTheTime
- func (container *Container) GetWithEnv1() SendEmail
- func (container *Container) GetWithEnv2() *SendEmail
- type CustomerWelcome
- type EmailSender
- type HTTPSignerClient
- type SendEmail
- type Signer
- type WhatsTheTime
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultContainer = NewContainer()
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { AFunc func(int, int) (bool, bool) Clock clockwork.Clock CustomerWelcome *CustomerWelcome DependsOnTime func(ParsedTime time.Time) time.Time HTTPSignerClient *HTTPSignerClient Now func() time.Time OtherPkg *go_sub_pkg.Person OtherPkg2 go_sub_pkg.Greeter OtherPkg3 *go_sub_pkg.Person ParsedTime func(value string) time.Time SendEmail EmailSender SendEmailError *SendEmail Signer func(req *http.Request) *Signer SomeEnv *string WhatsTheTime *WhatsTheTime WithEnv1 *SendEmail WithEnv2 *SendEmail }
func NewContainer ¶ added in v1.3.0
func NewContainer() *Container
func (*Container) GetCustomerWelcome ¶
func (container *Container) GetCustomerWelcome() *CustomerWelcome
func (*Container) GetDependsOnTime ¶ added in v1.3.0
func (*Container) GetHTTPSignerClient ¶ added in v1.3.0
func (container *Container) GetHTTPSignerClient() *HTTPSignerClient
func (*Container) GetOtherPkg ¶
func (container *Container) GetOtherPkg() *go_sub_pkg.Person
func (*Container) GetOtherPkg2 ¶
func (container *Container) GetOtherPkg2() go_sub_pkg.Greeter
func (*Container) GetOtherPkg3 ¶
func (container *Container) GetOtherPkg3() go_sub_pkg.Person
func (*Container) GetParsedTime ¶ added in v1.3.0
func (*Container) GetSendEmail ¶
func (container *Container) GetSendEmail() EmailSender
func (*Container) GetSendEmailError ¶
func (*Container) GetSomeEnv ¶
func (*Container) GetWhatsTheTime ¶ added in v1.3.0
func (container *Container) GetWhatsTheTime() *WhatsTheTime
func (*Container) GetWithEnv1 ¶
func (*Container) GetWithEnv2 ¶
type CustomerWelcome ¶
type CustomerWelcome struct {
Emailer EmailSender
}
func NewCustomerWelcome ¶
func NewCustomerWelcome(sender EmailSender) *CustomerWelcome
func (*CustomerWelcome) Welcome ¶
func (welcomer *CustomerWelcome) Welcome(name, email string) error
type EmailSender ¶
type HTTPSignerClient ¶ added in v1.3.0
type WhatsTheTime ¶ added in v1.3.0
type WhatsTheTime struct {
// contains filtered or unexported fields
}
func (*WhatsTheTime) InRFC1123 ¶ added in v1.3.0
func (t *WhatsTheTime) InRFC1123() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.