Documentation ¶
Index ¶
- Variables
- type Code
- func (c *Code) Challenge() secret.Text
- func (c *Code) ChallengeMethod() string
- func (c *Code) ClientID() string
- func (c *Code) Code() secret.Text
- func (c *Code) CreatedAt() time.Time
- func (c *Code) ExpiresAt() time.Time
- func (c *Code) RedirectURI() string
- func (c *Code) Scope() string
- func (c *Code) UserID() string
- type CreateCmd
- type FakeCodeBuilder
- type MockService
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidExpirationDate = fmt.Errorf("invalid expiration date")
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code struct {
// contains filtered or unexported fields
}
func (*Code) ChallengeMethod ¶
func (*Code) RedirectURI ¶
type CreateCmd ¶
type FakeCodeBuilder ¶
type FakeCodeBuilder struct {
// contains filtered or unexported fields
}
func NewFakeCode ¶
func NewFakeCode(t testing.TB) *FakeCodeBuilder
func (*FakeCodeBuilder) Build ¶
func (f *FakeCodeBuilder) Build() *Code
func (*FakeCodeBuilder) CreatedBy ¶
func (f *FakeCodeBuilder) CreatedBy(user *users.User) *FakeCodeBuilder
func (*FakeCodeBuilder) WithClient ¶
func (f *FakeCodeBuilder) WithClient(client *oauthclients.Client) *FakeCodeBuilder
type MockService ¶
MockService is an autogenerated mock type for the Service type
func NewMockService ¶
func NewMockService(t interface { mock.TestingT Cleanup(func()) }) *MockService
NewMockService creates a new instance of MockService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockService) Create ¶
func (_m *MockService) Create(ctx context.Context, input *CreateCmd) error
Create provides a mock function with given fields: ctx, input
func (*MockService) RemoveByCode ¶
RemoveByCode provides a mock function with given fields: ctx, code
Click to show internal directories.
Click to hide internal directories.