dingotest

package
v1.3.4-0...-0abe45f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code generated by dingo; DO NOT EDIT

Index

Constants

This section is empty.

Variables

This section is empty.

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
	SendEmail2       go_sub_pkg_4.EmailSender
	SendEmailError   *SendEmail
	Signer           func(req *http.Request) *Signer
	SomeEnv          *string
	WhatsTheTime     *WhatsTheTime
	WithEnv1         *SendEmail
	WithEnv2         *SendEmail
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(cfg *cfg_pkg.SendEmail, version string) *Container

func (*Container) GetAFunc

func (container *Container) GetAFunc() func(int, int) (bool, bool)

func (*Container) GetClock

func (container *Container) GetClock() clockwork.Clock

func (*Container) GetCustomerWelcome

func (container *Container) GetCustomerWelcome() *CustomerWelcome

func (*Container) GetDependsOnTime

func (container *Container) GetDependsOnTime() time.Time

func (*Container) GetHTTPSignerClient

func (container *Container) GetHTTPSignerClient() *HTTPSignerClient

func (*Container) GetNow

func (container *Container) GetNow() time.Time

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

func (container *Container) GetParsedTime(value string) time.Time

func (*Container) GetSendEmail

func (container *Container) GetSendEmail() EmailSender

func (*Container) GetSendEmail2

func (container *Container) GetSendEmail2() go_sub_pkg_4.EmailSender

func (*Container) GetSendEmailError

func (container *Container) GetSendEmailError() *SendEmail

func (*Container) GetSigner

func (container *Container) GetSigner(req *http.Request) *Signer

func (*Container) GetSomeEnv

func (container *Container) GetSomeEnv() string

func (*Container) GetWhatsTheTime

func (container *Container) GetWhatsTheTime() *WhatsTheTime

func (*Container) GetWithEnv1

func (container *Container) GetWithEnv1() SendEmail

func (*Container) GetWithEnv2

func (container *Container) GetWithEnv2() *SendEmail

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 EmailSender interface {
	Send(to, subject, body string) error
}

type HTTPSignerClient

type HTTPSignerClient struct {
	CreateSigner func(req *http.Request) *Signer
}

func (*HTTPSignerClient) Do

func (c *HTTPSignerClient) Do(req *http.Request) (*http.Response, error)

type SendEmail

type SendEmail struct {
	From string
}

func NewSendEmail

func NewSendEmail() (*SendEmail, error)

func (*SendEmail) Send

func (sender *SendEmail) Send(to, subject, body string) error

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(req *http.Request) *Signer

func (*Signer) Auth

func (signer *Signer) Auth() string

Produces something like "Mon Jan 2 15:04:05 2006 POST"

type Values

type Values struct {
	// contains filtered or unexported fields
}

type WhatsTheTime

type WhatsTheTime struct {
	// contains filtered or unexported fields
}

func (*WhatsTheTime) InRFC1123

func (t *WhatsTheTime) InRFC1123() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL