(f CASClientFactory)
| 63 | type CASClientOpts func(u *CASClientUseCase) |
| 64 | |
| 65 | func WithClientFactory(f CASClientFactory) CASClientOpts { |
| 66 | return func(c *CASClientUseCase) { |
| 67 | c.casClientFactory = f |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func NewCASClientUseCase(credsProvider *CASCredentialsUseCase, config *conf.Bootstrap_CASServer, l log.Logger, opts ...CASClientOpts) *CASClientUseCase { |
| 72 | helper := servicelogger.ScopedHelper(l, "biz/cas-client") |