PlunkClient creates a new instance of plunk.Client
()
| 1330 | |
| 1331 | // PlunkClient creates a new instance of plunk.Client |
| 1332 | func (container *Container) PlunkClient() (client *plunk.Client) { |
| 1333 | container.logger.Debug(fmt.Sprintf("creating %T", client)) |
| 1334 | return plunk.New( |
| 1335 | plunk.WithHTTPClient(container.HTTPClient("plunk")), |
| 1336 | plunk.WithSecretKey(os.Getenv("PLUNK_SECRET_KEY")), |
| 1337 | plunk.WithPublicKey(os.Getenv("PLUNK_PUBLIC_KEY")), |
| 1338 | ) |
| 1339 | } |
| 1340 | |
| 1341 | // RegisterLemonsqueezyRoutes registers routes for the /lemonsqueezy prefix |
| 1342 | func (container *Container) RegisterLemonsqueezyRoutes() { |
no test coverage detected