mockdb

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAliasesService

type FakeAliasesService struct {
	GetByIDStub func(context.Context, int64) (roomdb.Alias, error)

	ListStub func(context.Context) ([]roomdb.Alias, error)

	RegisterStub func(context.Context, string, refs.FeedRef, []byte) error

	ResolveStub func(context.Context, string) (roomdb.Alias, error)

	RevokeStub func(context.Context, string) error
	// contains filtered or unexported fields
}

func (*FakeAliasesService) GetByID

func (fake *FakeAliasesService) GetByID(arg1 context.Context, arg2 int64) (roomdb.Alias, error)

func (*FakeAliasesService) GetByIDArgsForCall

func (fake *FakeAliasesService) GetByIDArgsForCall(i int) (context.Context, int64)

func (*FakeAliasesService) GetByIDCallCount

func (fake *FakeAliasesService) GetByIDCallCount() int

func (*FakeAliasesService) GetByIDCalls

func (fake *FakeAliasesService) GetByIDCalls(stub func(context.Context, int64) (roomdb.Alias, error))

func (*FakeAliasesService) GetByIDReturns

func (fake *FakeAliasesService) GetByIDReturns(result1 roomdb.Alias, result2 error)

func (*FakeAliasesService) GetByIDReturnsOnCall

func (fake *FakeAliasesService) GetByIDReturnsOnCall(i int, result1 roomdb.Alias, result2 error)

func (*FakeAliasesService) Invocations

func (fake *FakeAliasesService) Invocations() map[string][][]interface{}

func (*FakeAliasesService) List

func (fake *FakeAliasesService) List(arg1 context.Context) ([]roomdb.Alias, error)

func (*FakeAliasesService) ListArgsForCall

func (fake *FakeAliasesService) ListArgsForCall(i int) context.Context

func (*FakeAliasesService) ListCallCount

func (fake *FakeAliasesService) ListCallCount() int

func (*FakeAliasesService) ListCalls

func (fake *FakeAliasesService) ListCalls(stub func(context.Context) ([]roomdb.Alias, error))

func (*FakeAliasesService) ListReturns

func (fake *FakeAliasesService) ListReturns(result1 []roomdb.Alias, result2 error)

func (*FakeAliasesService) ListReturnsOnCall

func (fake *FakeAliasesService) ListReturnsOnCall(i int, result1 []roomdb.Alias, result2 error)

func (*FakeAliasesService) Register

func (fake *FakeAliasesService) Register(arg1 context.Context, arg2 string, arg3 refs.FeedRef, arg4 []byte) error

func (*FakeAliasesService) RegisterArgsForCall

func (fake *FakeAliasesService) RegisterArgsForCall(i int) (context.Context, string, refs.FeedRef, []byte)

func (*FakeAliasesService) RegisterCallCount

func (fake *FakeAliasesService) RegisterCallCount() int

func (*FakeAliasesService) RegisterCalls

func (fake *FakeAliasesService) RegisterCalls(stub func(context.Context, string, refs.FeedRef, []byte) error)

func (*FakeAliasesService) RegisterReturns

func (fake *FakeAliasesService) RegisterReturns(result1 error)

func (*FakeAliasesService) RegisterReturnsOnCall

func (fake *FakeAliasesService) RegisterReturnsOnCall(i int, result1 error)

func (*FakeAliasesService) Resolve

func (fake *FakeAliasesService) Resolve(arg1 context.Context, arg2 string) (roomdb.Alias, error)

func (*FakeAliasesService) ResolveArgsForCall

func (fake *FakeAliasesService) ResolveArgsForCall(i int) (context.Context, string)

func (*FakeAliasesService) ResolveCallCount

func (fake *FakeAliasesService) ResolveCallCount() int

func (*FakeAliasesService) ResolveCalls

func (fake *FakeAliasesService) ResolveCalls(stub func(context.Context, string) (roomdb.Alias, error))

func (*FakeAliasesService) ResolveReturns

func (fake *FakeAliasesService) ResolveReturns(result1 roomdb.Alias, result2 error)

func (*FakeAliasesService) ResolveReturnsOnCall

func (fake *FakeAliasesService) ResolveReturnsOnCall(i int, result1 roomdb.Alias, result2 error)

func (*FakeAliasesService) Revoke

func (fake *FakeAliasesService) Revoke(arg1 context.Context, arg2 string) error

func (*FakeAliasesService) RevokeArgsForCall

func (fake *FakeAliasesService) RevokeArgsForCall(i int) (context.Context, string)

func (*FakeAliasesService) RevokeCallCount

func (fake *FakeAliasesService) RevokeCallCount() int

func (*FakeAliasesService) RevokeCalls

func (fake *FakeAliasesService) RevokeCalls(stub func(context.Context, string) error)

func (*FakeAliasesService) RevokeReturns

func (fake *FakeAliasesService) RevokeReturns(result1 error)

func (*FakeAliasesService) RevokeReturnsOnCall

func (fake *FakeAliasesService) RevokeReturnsOnCall(i int, result1 error)

type FakeAuthFallbackService

type FakeAuthFallbackService struct {
	CheckStub func(string, string) (interface{}, error)

	CreateResetTokenStub func(context.Context, int64, int64) (string, error)

	SetPasswordStub func(context.Context, int64, string) error

	SetPasswordWithTokenStub func(context.Context, string, string) error
	// contains filtered or unexported fields
}

func (*FakeAuthFallbackService) Check

func (fake *FakeAuthFallbackService) Check(arg1 string, arg2 string) (interface{}, error)

func (*FakeAuthFallbackService) CheckArgsForCall

func (fake *FakeAuthFallbackService) CheckArgsForCall(i int) (string, string)

func (*FakeAuthFallbackService) CheckCallCount

func (fake *FakeAuthFallbackService) CheckCallCount() int

func (*FakeAuthFallbackService) CheckCalls

func (fake *FakeAuthFallbackService) CheckCalls(stub func(string, string) (interface{}, error))

func (*FakeAuthFallbackService) CheckReturns

func (fake *FakeAuthFallbackService) CheckReturns(result1 interface{}, result2 error)

func (*FakeAuthFallbackService) CheckReturnsOnCall

func (fake *FakeAuthFallbackService) CheckReturnsOnCall(i int, result1 interface{}, result2 error)

func (*FakeAuthFallbackService) CreateResetToken

func (fake *FakeAuthFallbackService) CreateResetToken(arg1 context.Context, arg2 int64, arg3 int64) (string, error)

func (*FakeAuthFallbackService) CreateResetTokenArgsForCall

func (fake *FakeAuthFallbackService) CreateResetTokenArgsForCall(i int) (context.Context, int64, int64)

func (*FakeAuthFallbackService) CreateResetTokenCallCount

func (fake *FakeAuthFallbackService) CreateResetTokenCallCount() int

func (*FakeAuthFallbackService) CreateResetTokenCalls

func (fake *FakeAuthFallbackService) CreateResetTokenCalls(stub func(context.Context, int64, int64) (string, error))

func (*FakeAuthFallbackService) CreateResetTokenReturns

func (fake *FakeAuthFallbackService) CreateResetTokenReturns(result1 string, result2 error)

func (*FakeAuthFallbackService) CreateResetTokenReturnsOnCall

func (fake *FakeAuthFallbackService) CreateResetTokenReturnsOnCall(i int, result1 string, result2 error)

func (*FakeAuthFallbackService) Invocations

func (fake *FakeAuthFallbackService) Invocations() map[string][][]interface{}

func (*FakeAuthFallbackService) SetPassword

func (fake *FakeAuthFallbackService) SetPassword(arg1 context.Context, arg2 int64, arg3 string) error

func (*FakeAuthFallbackService) SetPasswordArgsForCall

func (fake *FakeAuthFallbackService) SetPasswordArgsForCall(i int) (context.Context, int64, string)

func (*FakeAuthFallbackService) SetPasswordCallCount

func (fake *FakeAuthFallbackService) SetPasswordCallCount() int

func (*FakeAuthFallbackService) SetPasswordCalls

func (fake *FakeAuthFallbackService) SetPasswordCalls(stub func(context.Context, int64, string) error)

func (*FakeAuthFallbackService) SetPasswordReturns

func (fake *FakeAuthFallbackService) SetPasswordReturns(result1 error)

func (*FakeAuthFallbackService) SetPasswordReturnsOnCall

func (fake *FakeAuthFallbackService) SetPasswordReturnsOnCall(i int, result1 error)

func (*FakeAuthFallbackService) SetPasswordWithToken

func (fake *FakeAuthFallbackService) SetPasswordWithToken(arg1 context.Context, arg2 string, arg3 string) error

func (*FakeAuthFallbackService) SetPasswordWithTokenArgsForCall

func (fake *FakeAuthFallbackService) SetPasswordWithTokenArgsForCall(i int) (context.Context, string, string)

func (*FakeAuthFallbackService) SetPasswordWithTokenCallCount

func (fake *FakeAuthFallbackService) SetPasswordWithTokenCallCount() int

func (*FakeAuthFallbackService) SetPasswordWithTokenCalls

func (fake *FakeAuthFallbackService) SetPasswordWithTokenCalls(stub func(context.Context, string, string) error)

func (*FakeAuthFallbackService) SetPasswordWithTokenReturns

func (fake *FakeAuthFallbackService) SetPasswordWithTokenReturns(result1 error)

func (*FakeAuthFallbackService) SetPasswordWithTokenReturnsOnCall

func (fake *FakeAuthFallbackService) SetPasswordWithTokenReturnsOnCall(i int, result1 error)

type FakeAuthWithSSBService

type FakeAuthWithSSBService struct {
	CheckTokenStub func(context.Context, string) (int64, error)

	CreateTokenStub func(context.Context, int64) (string, error)

	RemoveTokenStub func(context.Context, string) error

	WipeTokensForMemberStub func(context.Context, int64) error
	// contains filtered or unexported fields
}

func (*FakeAuthWithSSBService) CheckToken

func (fake *FakeAuthWithSSBService) CheckToken(arg1 context.Context, arg2 string) (int64, error)

func (*FakeAuthWithSSBService) CheckTokenArgsForCall

func (fake *FakeAuthWithSSBService) CheckTokenArgsForCall(i int) (context.Context, string)

func (*FakeAuthWithSSBService) CheckTokenCallCount

func (fake *FakeAuthWithSSBService) CheckTokenCallCount() int

func (*FakeAuthWithSSBService) CheckTokenCalls

func (fake *FakeAuthWithSSBService) CheckTokenCalls(stub func(context.Context, string) (int64, error))

func (*FakeAuthWithSSBService) CheckTokenReturns

func (fake *FakeAuthWithSSBService) CheckTokenReturns(result1 int64, result2 error)

func (*FakeAuthWithSSBService) CheckTokenReturnsOnCall

func (fake *FakeAuthWithSSBService) CheckTokenReturnsOnCall(i int, result1 int64, result2 error)

func (*FakeAuthWithSSBService) CreateToken

func (fake *FakeAuthWithSSBService) CreateToken(arg1 context.Context, arg2 int64) (string, error)

func (*FakeAuthWithSSBService) CreateTokenArgsForCall

func (fake *FakeAuthWithSSBService) CreateTokenArgsForCall(i int) (context.Context, int64)

func (*FakeAuthWithSSBService) CreateTokenCallCount

func (fake *FakeAuthWithSSBService) CreateTokenCallCount() int

func (*FakeAuthWithSSBService) CreateTokenCalls

func (fake *FakeAuthWithSSBService) CreateTokenCalls(stub func(context.Context, int64) (string, error))

func (*FakeAuthWithSSBService) CreateTokenReturns

func (fake *FakeAuthWithSSBService) CreateTokenReturns(result1 string, result2 error)

func (*FakeAuthWithSSBService) CreateTokenReturnsOnCall

func (fake *FakeAuthWithSSBService) CreateTokenReturnsOnCall(i int, result1 string, result2 error)

func (*FakeAuthWithSSBService) Invocations

func (fake *FakeAuthWithSSBService) Invocations() map[string][][]interface{}

func (*FakeAuthWithSSBService) RemoveToken

func (fake *FakeAuthWithSSBService) RemoveToken(arg1 context.Context, arg2 string) error

func (*FakeAuthWithSSBService) RemoveTokenArgsForCall

func (fake *FakeAuthWithSSBService) RemoveTokenArgsForCall(i int) (context.Context, string)

func (*FakeAuthWithSSBService) RemoveTokenCallCount

func (fake *FakeAuthWithSSBService) RemoveTokenCallCount() int

func (*FakeAuthWithSSBService) RemoveTokenCalls

func (fake *FakeAuthWithSSBService) RemoveTokenCalls(stub func(context.Context, string) error)

func (*FakeAuthWithSSBService) RemoveTokenReturns

func (fake *FakeAuthWithSSBService) RemoveTokenReturns(result1 error)

func (*FakeAuthWithSSBService) RemoveTokenReturnsOnCall

func (fake *FakeAuthWithSSBService) RemoveTokenReturnsOnCall(i int, result1 error)

func (*FakeAuthWithSSBService) WipeTokensForMember

func (fake *FakeAuthWithSSBService) WipeTokensForMember(arg1 context.Context, arg2 int64) error

func (*FakeAuthWithSSBService) WipeTokensForMemberArgsForCall

func (fake *FakeAuthWithSSBService) WipeTokensForMemberArgsForCall(i int) (context.Context, int64)

func (*FakeAuthWithSSBService) WipeTokensForMemberCallCount

func (fake *FakeAuthWithSSBService) WipeTokensForMemberCallCount() int

func (*FakeAuthWithSSBService) WipeTokensForMemberCalls

func (fake *FakeAuthWithSSBService) WipeTokensForMemberCalls(stub func(context.Context, int64) error)

func (*FakeAuthWithSSBService) WipeTokensForMemberReturns

func (fake *FakeAuthWithSSBService) WipeTokensForMemberReturns(result1 error)

func (*FakeAuthWithSSBService) WipeTokensForMemberReturnsOnCall

func (fake *FakeAuthWithSSBService) WipeTokensForMemberReturnsOnCall(i int, result1 error)

type FakeDeniedKeysService

type FakeDeniedKeysService struct {
	AddStub func(context.Context, refs.FeedRef, string) error

	CountStub func(context.Context) (uint, error)

	GetByIDStub func(context.Context, int64) (roomdb.ListEntry, error)

	HasFeedStub func(context.Context, refs.FeedRef) bool

	HasIDStub func(context.Context, int64) bool

	ListStub func(context.Context) ([]roomdb.ListEntry, error)

	RemoveFeedStub func(context.Context, refs.FeedRef) error

	RemoveIDStub func(context.Context, int64) error
	// contains filtered or unexported fields
}

func (*FakeDeniedKeysService) Add

func (fake *FakeDeniedKeysService) Add(arg1 context.Context, arg2 refs.FeedRef, arg3 string) error

func (*FakeDeniedKeysService) AddArgsForCall

func (fake *FakeDeniedKeysService) AddArgsForCall(i int) (context.Context, refs.FeedRef, string)

func (*FakeDeniedKeysService) AddCallCount

func (fake *FakeDeniedKeysService) AddCallCount() int

func (*FakeDeniedKeysService) AddCalls

func (fake *FakeDeniedKeysService) AddCalls(stub func(context.Context, refs.FeedRef, string) error)

func (*FakeDeniedKeysService) AddReturns

func (fake *FakeDeniedKeysService) AddReturns(result1 error)

func (*FakeDeniedKeysService) AddReturnsOnCall

func (fake *FakeDeniedKeysService) AddReturnsOnCall(i int, result1 error)

func (*FakeDeniedKeysService) Count

func (fake *FakeDeniedKeysService) Count(arg1 context.Context) (uint, error)

func (*FakeDeniedKeysService) CountArgsForCall

func (fake *FakeDeniedKeysService) CountArgsForCall(i int) context.Context

func (*FakeDeniedKeysService) CountCallCount

func (fake *FakeDeniedKeysService) CountCallCount() int

func (*FakeDeniedKeysService) CountCalls

func (fake *FakeDeniedKeysService) CountCalls(stub func(context.Context) (uint, error))

func (*FakeDeniedKeysService) CountReturns

func (fake *FakeDeniedKeysService) CountReturns(result1 uint, result2 error)

func (*FakeDeniedKeysService) CountReturnsOnCall

func (fake *FakeDeniedKeysService) CountReturnsOnCall(i int, result1 uint, result2 error)

func (*FakeDeniedKeysService) GetByID

func (fake *FakeDeniedKeysService) GetByID(arg1 context.Context, arg2 int64) (roomdb.ListEntry, error)

func (*FakeDeniedKeysService) GetByIDArgsForCall

func (fake *FakeDeniedKeysService) GetByIDArgsForCall(i int) (context.Context, int64)

func (*FakeDeniedKeysService) GetByIDCallCount

func (fake *FakeDeniedKeysService) GetByIDCallCount() int

func (*FakeDeniedKeysService) GetByIDCalls

func (fake *FakeDeniedKeysService) GetByIDCalls(stub func(context.Context, int64) (roomdb.ListEntry, error))

func (*FakeDeniedKeysService) GetByIDReturns

func (fake *FakeDeniedKeysService) GetByIDReturns(result1 roomdb.ListEntry, result2 error)

func (*FakeDeniedKeysService) GetByIDReturnsOnCall

func (fake *FakeDeniedKeysService) GetByIDReturnsOnCall(i int, result1 roomdb.ListEntry, result2 error)

func (*FakeDeniedKeysService) HasFeed

func (fake *FakeDeniedKeysService) HasFeed(arg1 context.Context, arg2 refs.FeedRef) bool

func (*FakeDeniedKeysService) HasFeedArgsForCall

func (fake *FakeDeniedKeysService) HasFeedArgsForCall(i int) (context.Context, refs.FeedRef)

func (*FakeDeniedKeysService) HasFeedCallCount

func (fake *FakeDeniedKeysService) HasFeedCallCount() int

func (*FakeDeniedKeysService) HasFeedCalls

func (fake *FakeDeniedKeysService) HasFeedCalls(stub func(context.Context, refs.FeedRef) bool)

func (*FakeDeniedKeysService) HasFeedReturns

func (fake *FakeDeniedKeysService) HasFeedReturns(result1 bool)

func (*FakeDeniedKeysService) HasFeedReturnsOnCall

func (fake *FakeDeniedKeysService) HasFeedReturnsOnCall(i int, result1 bool)

func (*FakeDeniedKeysService) HasID

func (fake *FakeDeniedKeysService) HasID(arg1 context.Context, arg2 int64) bool

func (*FakeDeniedKeysService) HasIDArgsForCall

func (fake *FakeDeniedKeysService) HasIDArgsForCall(i int) (context.Context, int64)

func (*FakeDeniedKeysService) HasIDCallCount

func (fake *FakeDeniedKeysService) HasIDCallCount() int

func (*FakeDeniedKeysService) HasIDCalls

func (fake *FakeDeniedKeysService) HasIDCalls(stub func(context.Context, int64) bool)

func (*FakeDeniedKeysService) HasIDReturns

func (fake *FakeDeniedKeysService) HasIDReturns(result1 bool)

func (*FakeDeniedKeysService) HasIDReturnsOnCall

func (fake *FakeDeniedKeysService) HasIDReturnsOnCall(i int, result1 bool)

func (*FakeDeniedKeysService) Invocations

func (fake *FakeDeniedKeysService) Invocations() map[string][][]interface{}

func (*FakeDeniedKeysService) List

func (*FakeDeniedKeysService) ListArgsForCall

func (fake *FakeDeniedKeysService) ListArgsForCall(i int) context.Context

func (*FakeDeniedKeysService) ListCallCount

func (fake *FakeDeniedKeysService) ListCallCount() int

func (*FakeDeniedKeysService) ListCalls

func (fake *FakeDeniedKeysService) ListCalls(stub func(context.Context) ([]roomdb.ListEntry, error))

func (*FakeDeniedKeysService) ListReturns

func (fake *FakeDeniedKeysService) ListReturns(result1 []roomdb.ListEntry, result2 error)

func (*FakeDeniedKeysService) ListReturnsOnCall

func (fake *FakeDeniedKeysService) ListReturnsOnCall(i int, result1 []roomdb.ListEntry, result2 error)

func (*FakeDeniedKeysService) RemoveFeed

func (fake *FakeDeniedKeysService) RemoveFeed(arg1 context.Context, arg2 refs.FeedRef) error

func (*FakeDeniedKeysService) RemoveFeedArgsForCall

func (fake *FakeDeniedKeysService) RemoveFeedArgsForCall(i int) (context.Context, refs.FeedRef)

func (*FakeDeniedKeysService) RemoveFeedCallCount

func (fake *FakeDeniedKeysService) RemoveFeedCallCount() int

func (*FakeDeniedKeysService) RemoveFeedCalls

func (fake *FakeDeniedKeysService) RemoveFeedCalls(stub func(context.Context, refs.FeedRef) error)

func (*FakeDeniedKeysService) RemoveFeedReturns

func (fake *FakeDeniedKeysService) RemoveFeedReturns(result1 error)

func (*FakeDeniedKeysService) RemoveFeedReturnsOnCall

func (fake *FakeDeniedKeysService) RemoveFeedReturnsOnCall(i int, result1 error)

func (*FakeDeniedKeysService) RemoveID

func (fake *FakeDeniedKeysService) RemoveID(arg1 context.Context, arg2 int64) error

func (*FakeDeniedKeysService) RemoveIDArgsForCall

func (fake *FakeDeniedKeysService) RemoveIDArgsForCall(i int) (context.Context, int64)

func (*FakeDeniedKeysService) RemoveIDCallCount

func (fake *FakeDeniedKeysService) RemoveIDCallCount() int

func (*FakeDeniedKeysService) RemoveIDCalls

func (fake *FakeDeniedKeysService) RemoveIDCalls(stub func(context.Context, int64) error)

func (*FakeDeniedKeysService) RemoveIDReturns

func (fake *FakeDeniedKeysService) RemoveIDReturns(result1 error)

func (*FakeDeniedKeysService) RemoveIDReturnsOnCall

func (fake *FakeDeniedKeysService) RemoveIDReturnsOnCall(i int, result1 error)

type FakeInvitesService

type FakeInvitesService struct {
	ConsumeStub func(context.Context, string, refs.FeedRef) (roomdb.Invite, error)

	CountStub func(context.Context) (uint, error)

	CreateStub func(context.Context, int64) (string, error)

	GetByIDStub func(context.Context, int64) (roomdb.Invite, error)

	GetByTokenStub func(context.Context, string) (roomdb.Invite, error)

	ListStub func(context.Context) ([]roomdb.Invite, error)

	RevokeStub func(context.Context, int64) error
	// contains filtered or unexported fields
}

func (*FakeInvitesService) Consume

func (fake *FakeInvitesService) Consume(arg1 context.Context, arg2 string, arg3 refs.FeedRef) (roomdb.Invite, error)

func (*FakeInvitesService) ConsumeArgsForCall

func (fake *FakeInvitesService) ConsumeArgsForCall(i int) (context.Context, string, refs.FeedRef)

func (*FakeInvitesService) ConsumeCallCount

func (fake *FakeInvitesService) ConsumeCallCount() int

func (*FakeInvitesService) ConsumeCalls

func (fake *FakeInvitesService) ConsumeCalls(stub func(context.Context, string, refs.FeedRef) (roomdb.Invite, error))

func (*FakeInvitesService) ConsumeReturns

func (fake *FakeInvitesService) ConsumeReturns(result1 roomdb.Invite, result2 error)

func (*FakeInvitesService) ConsumeReturnsOnCall

func (fake *FakeInvitesService) ConsumeReturnsOnCall(i int, result1 roomdb.Invite, result2 error)

func (*FakeInvitesService) Count

func (fake *FakeInvitesService) Count(arg1 context.Context) (uint, error)

func (*FakeInvitesService) CountArgsForCall

func (fake *FakeInvitesService) CountArgsForCall(i int) context.Context

func (*FakeInvitesService) CountCallCount

func (fake *FakeInvitesService) CountCallCount() int

func (*FakeInvitesService) CountCalls

func (fake *FakeInvitesService) CountCalls(stub func(context.Context) (uint, error))

func (*FakeInvitesService) CountReturns

func (fake *FakeInvitesService) CountReturns(result1 uint, result2 error)

func (*FakeInvitesService) CountReturnsOnCall

func (fake *FakeInvitesService) CountReturnsOnCall(i int, result1 uint, result2 error)

func (*FakeInvitesService) Create

func (fake *FakeInvitesService) Create(arg1 context.Context, arg2 int64) (string, error)

func (*FakeInvitesService) CreateArgsForCall

func (fake *FakeInvitesService) CreateArgsForCall(i int) (context.Context, int64)

func (*FakeInvitesService) CreateCallCount

func (fake *FakeInvitesService) CreateCallCount() int

func (*FakeInvitesService) CreateCalls

func (fake *FakeInvitesService) CreateCalls(stub func(context.Context, int64) (string, error))

func (*FakeInvitesService) CreateReturns

func (fake *FakeInvitesService) CreateReturns(result1 string, result2 error)

func (*FakeInvitesService) CreateReturnsOnCall

func (fake *FakeInvitesService) CreateReturnsOnCall(i int, result1 string, result2 error)

func (*FakeInvitesService) GetByID

func (fake *FakeInvitesService) GetByID(arg1 context.Context, arg2 int64) (roomdb.Invite, error)

func (*FakeInvitesService) GetByIDArgsForCall

func (fake *FakeInvitesService) GetByIDArgsForCall(i int) (context.Context, int64)

func (*FakeInvitesService) GetByIDCallCount

func (fake *FakeInvitesService) GetByIDCallCount() int

func (*FakeInvitesService) GetByIDCalls

func (fake *FakeInvitesService) GetByIDCalls(stub func(context.Context, int64) (roomdb.Invite, error))

func (*FakeInvitesService) GetByIDReturns

func (fake *FakeInvitesService) GetByIDReturns(result1 roomdb.Invite, result2 error)

func (*FakeInvitesService) GetByIDReturnsOnCall

func (fake *FakeInvitesService) GetByIDReturnsOnCall(i int, result1 roomdb.Invite, result2 error)

func (*FakeInvitesService) GetByToken

func (fake *FakeInvitesService) GetByToken(arg1 context.Context, arg2 string) (roomdb.Invite, error)

func (*FakeInvitesService) GetByTokenArgsForCall

func (fake *FakeInvitesService) GetByTokenArgsForCall(i int) (context.Context, string)

func (*FakeInvitesService) GetByTokenCallCount

func (fake *FakeInvitesService) GetByTokenCallCount() int

func (*FakeInvitesService) GetByTokenCalls

func (fake *FakeInvitesService) GetByTokenCalls(stub func(context.Context, string) (roomdb.Invite, error))

func (*FakeInvitesService) GetByTokenReturns

func (fake *FakeInvitesService) GetByTokenReturns(result1 roomdb.Invite, result2 error)

func (*FakeInvitesService) GetByTokenReturnsOnCall

func (fake *FakeInvitesService) GetByTokenReturnsOnCall(i int, result1 roomdb.Invite, result2 error)

func (*FakeInvitesService) Invocations

func (fake *FakeInvitesService) Invocations() map[string][][]interface{}

func (*FakeInvitesService) List

func (fake *FakeInvitesService) List(arg1 context.Context) ([]roomdb.Invite, error)

func (*FakeInvitesService) ListArgsForCall

func (fake *FakeInvitesService) ListArgsForCall(i int) context.Context

func (*FakeInvitesService) ListCallCount

func (fake *FakeInvitesService) ListCallCount() int

func (*FakeInvitesService) ListCalls

func (fake *FakeInvitesService) ListCalls(stub func(context.Context) ([]roomdb.Invite, error))

func (*FakeInvitesService) ListReturns

func (fake *FakeInvitesService) ListReturns(result1 []roomdb.Invite, result2 error)

func (*FakeInvitesService) ListReturnsOnCall

func (fake *FakeInvitesService) ListReturnsOnCall(i int, result1 []roomdb.Invite, result2 error)

func (*FakeInvitesService) Revoke

func (fake *FakeInvitesService) Revoke(arg1 context.Context, arg2 int64) error

func (*FakeInvitesService) RevokeArgsForCall

func (fake *FakeInvitesService) RevokeArgsForCall(i int) (context.Context, int64)

func (*FakeInvitesService) RevokeCallCount

func (fake *FakeInvitesService) RevokeCallCount() int

func (*FakeInvitesService) RevokeCalls

func (fake *FakeInvitesService) RevokeCalls(stub func(context.Context, int64) error)

func (*FakeInvitesService) RevokeReturns

func (fake *FakeInvitesService) RevokeReturns(result1 error)

func (*FakeInvitesService) RevokeReturnsOnCall

func (fake *FakeInvitesService) RevokeReturnsOnCall(i int, result1 error)

type FakeMembersService

type FakeMembersService struct {
	AddStub func(context.Context, refs.FeedRef, roomdb.Role) (int64, error)

	CountStub func(context.Context) (uint, error)

	GetByFeedStub func(context.Context, refs.FeedRef) (roomdb.Member, error)

	GetByIDStub func(context.Context, int64) (roomdb.Member, error)

	ListStub func(context.Context) ([]roomdb.Member, error)

	RemoveFeedStub func(context.Context, refs.FeedRef) error

	RemoveIDStub func(context.Context, int64) error

	SetRoleStub func(context.Context, int64, roomdb.Role) error
	// contains filtered or unexported fields
}

func (*FakeMembersService) Add

func (fake *FakeMembersService) Add(arg1 context.Context, arg2 refs.FeedRef, arg3 roomdb.Role) (int64, error)

func (*FakeMembersService) AddArgsForCall

func (fake *FakeMembersService) AddArgsForCall(i int) (context.Context, refs.FeedRef, roomdb.Role)

func (*FakeMembersService) AddCallCount

func (fake *FakeMembersService) AddCallCount() int

func (*FakeMembersService) AddCalls

func (fake *FakeMembersService) AddCalls(stub func(context.Context, refs.FeedRef, roomdb.Role) (int64, error))

func (*FakeMembersService) AddReturns

func (fake *FakeMembersService) AddReturns(result1 int64, result2 error)

func (*FakeMembersService) AddReturnsOnCall

func (fake *FakeMembersService) AddReturnsOnCall(i int, result1 int64, result2 error)

func (*FakeMembersService) Count

func (fake *FakeMembersService) Count(arg1 context.Context) (uint, error)

func (*FakeMembersService) CountArgsForCall

func (fake *FakeMembersService) CountArgsForCall(i int) context.Context

func (*FakeMembersService) CountCallCount

func (fake *FakeMembersService) CountCallCount() int

func (*FakeMembersService) CountCalls

func (fake *FakeMembersService) CountCalls(stub func(context.Context) (uint, error))

func (*FakeMembersService) CountReturns

func (fake *FakeMembersService) CountReturns(result1 uint, result2 error)

func (*FakeMembersService) CountReturnsOnCall

func (fake *FakeMembersService) CountReturnsOnCall(i int, result1 uint, result2 error)

func (*FakeMembersService) GetByFeed

func (fake *FakeMembersService) GetByFeed(arg1 context.Context, arg2 refs.FeedRef) (roomdb.Member, error)

func (*FakeMembersService) GetByFeedArgsForCall

func (fake *FakeMembersService) GetByFeedArgsForCall(i int) (context.Context, refs.FeedRef)

func (*FakeMembersService) GetByFeedCallCount

func (fake *FakeMembersService) GetByFeedCallCount() int

func (*FakeMembersService) GetByFeedCalls

func (fake *FakeMembersService) GetByFeedCalls(stub func(context.Context, refs.FeedRef) (roomdb.Member, error))

func (*FakeMembersService) GetByFeedReturns

func (fake *FakeMembersService) GetByFeedReturns(result1 roomdb.Member, result2 error)

func (*FakeMembersService) GetByFeedReturnsOnCall

func (fake *FakeMembersService) GetByFeedReturnsOnCall(i int, result1 roomdb.Member, result2 error)

func (*FakeMembersService) GetByID

func (fake *FakeMembersService) GetByID(arg1 context.Context, arg2 int64) (roomdb.Member, error)

func (*FakeMembersService) GetByIDArgsForCall

func (fake *FakeMembersService) GetByIDArgsForCall(i int) (context.Context, int64)

func (*FakeMembersService) GetByIDCallCount

func (fake *FakeMembersService) GetByIDCallCount() int

func (*FakeMembersService) GetByIDCalls

func (fake *FakeMembersService) GetByIDCalls(stub func(context.Context, int64) (roomdb.Member, error))

func (*FakeMembersService) GetByIDReturns

func (fake *FakeMembersService) GetByIDReturns(result1 roomdb.Member, result2 error)

func (*FakeMembersService) GetByIDReturnsOnCall

func (fake *FakeMembersService) GetByIDReturnsOnCall(i int, result1 roomdb.Member, result2 error)

func (*FakeMembersService) Invocations

func (fake *FakeMembersService) Invocations() map[string][][]interface{}

func (*FakeMembersService) List

func (fake *FakeMembersService) List(arg1 context.Context) ([]roomdb.Member, error)

func (*FakeMembersService) ListArgsForCall

func (fake *FakeMembersService) ListArgsForCall(i int) context.Context

func (*FakeMembersService) ListCallCount

func (fake *FakeMembersService) ListCallCount() int

func (*FakeMembersService) ListCalls

func (fake *FakeMembersService) ListCalls(stub func(context.Context) ([]roomdb.Member, error))

func (*FakeMembersService) ListReturns

func (fake *FakeMembersService) ListReturns(result1 []roomdb.Member, result2 error)

func (*FakeMembersService) ListReturnsOnCall

func (fake *FakeMembersService) ListReturnsOnCall(i int, result1 []roomdb.Member, result2 error)

func (*FakeMembersService) RemoveFeed

func (fake *FakeMembersService) RemoveFeed(arg1 context.Context, arg2 refs.FeedRef) error

func (*FakeMembersService) RemoveFeedArgsForCall

func (fake *FakeMembersService) RemoveFeedArgsForCall(i int) (context.Context, refs.FeedRef)

func (*FakeMembersService) RemoveFeedCallCount

func (fake *FakeMembersService) RemoveFeedCallCount() int

func (*FakeMembersService) RemoveFeedCalls

func (fake *FakeMembersService) RemoveFeedCalls(stub func(context.Context, refs.FeedRef) error)

func (*FakeMembersService) RemoveFeedReturns

func (fake *FakeMembersService) RemoveFeedReturns(result1 error)

func (*FakeMembersService) RemoveFeedReturnsOnCall

func (fake *FakeMembersService) RemoveFeedReturnsOnCall(i int, result1 error)

func (*FakeMembersService) RemoveID

func (fake *FakeMembersService) RemoveID(arg1 context.Context, arg2 int64) error

func (*FakeMembersService) RemoveIDArgsForCall

func (fake *FakeMembersService) RemoveIDArgsForCall(i int) (context.Context, int64)

func (*FakeMembersService) RemoveIDCallCount

func (fake *FakeMembersService) RemoveIDCallCount() int

func (*FakeMembersService) RemoveIDCalls

func (fake *FakeMembersService) RemoveIDCalls(stub func(context.Context, int64) error)

func (*FakeMembersService) RemoveIDReturns

func (fake *FakeMembersService) RemoveIDReturns(result1 error)

func (*FakeMembersService) RemoveIDReturnsOnCall

func (fake *FakeMembersService) RemoveIDReturnsOnCall(i int, result1 error)

func (*FakeMembersService) SetRole

func (fake *FakeMembersService) SetRole(arg1 context.Context, arg2 int64, arg3 roomdb.Role) error

func (*FakeMembersService) SetRoleArgsForCall

func (fake *FakeMembersService) SetRoleArgsForCall(i int) (context.Context, int64, roomdb.Role)

func (*FakeMembersService) SetRoleCallCount

func (fake *FakeMembersService) SetRoleCallCount() int

func (*FakeMembersService) SetRoleCalls

func (fake *FakeMembersService) SetRoleCalls(stub func(context.Context, int64, roomdb.Role) error)

func (*FakeMembersService) SetRoleReturns

func (fake *FakeMembersService) SetRoleReturns(result1 error)

func (*FakeMembersService) SetRoleReturnsOnCall

func (fake *FakeMembersService) SetRoleReturnsOnCall(i int, result1 error)

type FakeNoticesService

type FakeNoticesService struct {
	GetByIDStub func(context.Context, int64) (roomdb.Notice, error)

	RemoveIDStub func(context.Context, int64) error

	SaveStub func(context.Context, *roomdb.Notice) error
	// contains filtered or unexported fields
}

func (*FakeNoticesService) GetByID

func (fake *FakeNoticesService) GetByID(arg1 context.Context, arg2 int64) (roomdb.Notice, error)

func (*FakeNoticesService) GetByIDArgsForCall

func (fake *FakeNoticesService) GetByIDArgsForCall(i int) (context.Context, int64)

func (*FakeNoticesService) GetByIDCallCount

func (fake *FakeNoticesService) GetByIDCallCount() int

func (*FakeNoticesService) GetByIDCalls

func (fake *FakeNoticesService) GetByIDCalls(stub func(context.Context, int64) (roomdb.Notice, error))

func (*FakeNoticesService) GetByIDReturns

func (fake *FakeNoticesService) GetByIDReturns(result1 roomdb.Notice, result2 error)

func (*FakeNoticesService) GetByIDReturnsOnCall

func (fake *FakeNoticesService) GetByIDReturnsOnCall(i int, result1 roomdb.Notice, result2 error)

func (*FakeNoticesService) Invocations

func (fake *FakeNoticesService) Invocations() map[string][][]interface{}

func (*FakeNoticesService) RemoveID

func (fake *FakeNoticesService) RemoveID(arg1 context.Context, arg2 int64) error

func (*FakeNoticesService) RemoveIDArgsForCall

func (fake *FakeNoticesService) RemoveIDArgsForCall(i int) (context.Context, int64)

func (*FakeNoticesService) RemoveIDCallCount

func (fake *FakeNoticesService) RemoveIDCallCount() int

func (*FakeNoticesService) RemoveIDCalls

func (fake *FakeNoticesService) RemoveIDCalls(stub func(context.Context, int64) error)

func (*FakeNoticesService) RemoveIDReturns

func (fake *FakeNoticesService) RemoveIDReturns(result1 error)

func (*FakeNoticesService) RemoveIDReturnsOnCall

func (fake *FakeNoticesService) RemoveIDReturnsOnCall(i int, result1 error)

func (*FakeNoticesService) Save

func (fake *FakeNoticesService) Save(arg1 context.Context, arg2 *roomdb.Notice) error

func (*FakeNoticesService) SaveArgsForCall

func (fake *FakeNoticesService) SaveArgsForCall(i int) (context.Context, *roomdb.Notice)

func (*FakeNoticesService) SaveCallCount

func (fake *FakeNoticesService) SaveCallCount() int

func (*FakeNoticesService) SaveCalls

func (fake *FakeNoticesService) SaveCalls(stub func(context.Context, *roomdb.Notice) error)

func (*FakeNoticesService) SaveReturns

func (fake *FakeNoticesService) SaveReturns(result1 error)

func (*FakeNoticesService) SaveReturnsOnCall

func (fake *FakeNoticesService) SaveReturnsOnCall(i int, result1 error)

type FakePinnedNoticesService

type FakePinnedNoticesService struct {
	GetStub func(context.Context, roomdb.PinnedNoticeName, string) (*roomdb.Notice, error)

	ListStub func(context.Context) (roomdb.PinnedNotices, error)

	SetStub func(context.Context, roomdb.PinnedNoticeName, int64) error
	// contains filtered or unexported fields
}

func (*FakePinnedNoticesService) Get

func (*FakePinnedNoticesService) GetArgsForCall

func (*FakePinnedNoticesService) GetCallCount

func (fake *FakePinnedNoticesService) GetCallCount() int

func (*FakePinnedNoticesService) GetCalls

func (*FakePinnedNoticesService) GetReturns

func (fake *FakePinnedNoticesService) GetReturns(result1 *roomdb.Notice, result2 error)

func (*FakePinnedNoticesService) GetReturnsOnCall

func (fake *FakePinnedNoticesService) GetReturnsOnCall(i int, result1 *roomdb.Notice, result2 error)

func (*FakePinnedNoticesService) Invocations

func (fake *FakePinnedNoticesService) Invocations() map[string][][]interface{}

func (*FakePinnedNoticesService) List

func (*FakePinnedNoticesService) ListArgsForCall

func (fake *FakePinnedNoticesService) ListArgsForCall(i int) context.Context

func (*FakePinnedNoticesService) ListCallCount

func (fake *FakePinnedNoticesService) ListCallCount() int

func (*FakePinnedNoticesService) ListCalls

func (fake *FakePinnedNoticesService) ListCalls(stub func(context.Context) (roomdb.PinnedNotices, error))

func (*FakePinnedNoticesService) ListReturns

func (fake *FakePinnedNoticesService) ListReturns(result1 roomdb.PinnedNotices, result2 error)

func (*FakePinnedNoticesService) ListReturnsOnCall

func (fake *FakePinnedNoticesService) ListReturnsOnCall(i int, result1 roomdb.PinnedNotices, result2 error)

func (*FakePinnedNoticesService) Set

func (*FakePinnedNoticesService) SetArgsForCall

func (*FakePinnedNoticesService) SetCallCount

func (fake *FakePinnedNoticesService) SetCallCount() int

func (*FakePinnedNoticesService) SetCalls

func (*FakePinnedNoticesService) SetReturns

func (fake *FakePinnedNoticesService) SetReturns(result1 error)

func (*FakePinnedNoticesService) SetReturnsOnCall

func (fake *FakePinnedNoticesService) SetReturnsOnCall(i int, result1 error)

type FakeRoomConfig

type FakeRoomConfig struct {
	GetDefaultLanguageStub func(context.Context) (string, error)

	GetPrivacyModeStub func(context.Context) (roomdb.PrivacyMode, error)

	SetDefaultLanguageStub func(context.Context, string) error

	SetPrivacyModeStub func(context.Context, roomdb.PrivacyMode) error
	// contains filtered or unexported fields
}

func (*FakeRoomConfig) GetDefaultLanguage

func (fake *FakeRoomConfig) GetDefaultLanguage(arg1 context.Context) (string, error)

func (*FakeRoomConfig) GetDefaultLanguageArgsForCall

func (fake *FakeRoomConfig) GetDefaultLanguageArgsForCall(i int) context.Context

func (*FakeRoomConfig) GetDefaultLanguageCallCount

func (fake *FakeRoomConfig) GetDefaultLanguageCallCount() int

func (*FakeRoomConfig) GetDefaultLanguageCalls

func (fake *FakeRoomConfig) GetDefaultLanguageCalls(stub func(context.Context) (string, error))

func (*FakeRoomConfig) GetDefaultLanguageReturns

func (fake *FakeRoomConfig) GetDefaultLanguageReturns(result1 string, result2 error)

func (*FakeRoomConfig) GetDefaultLanguageReturnsOnCall

func (fake *FakeRoomConfig) GetDefaultLanguageReturnsOnCall(i int, result1 string, result2 error)

func (*FakeRoomConfig) GetPrivacyMode

func (fake *FakeRoomConfig) GetPrivacyMode(arg1 context.Context) (roomdb.PrivacyMode, error)

func (*FakeRoomConfig) GetPrivacyModeArgsForCall

func (fake *FakeRoomConfig) GetPrivacyModeArgsForCall(i int) context.Context

func (*FakeRoomConfig) GetPrivacyModeCallCount

func (fake *FakeRoomConfig) GetPrivacyModeCallCount() int

func (*FakeRoomConfig) GetPrivacyModeCalls

func (fake *FakeRoomConfig) GetPrivacyModeCalls(stub func(context.Context) (roomdb.PrivacyMode, error))

func (*FakeRoomConfig) GetPrivacyModeReturns

func (fake *FakeRoomConfig) GetPrivacyModeReturns(result1 roomdb.PrivacyMode, result2 error)

func (*FakeRoomConfig) GetPrivacyModeReturnsOnCall

func (fake *FakeRoomConfig) GetPrivacyModeReturnsOnCall(i int, result1 roomdb.PrivacyMode, result2 error)

func (*FakeRoomConfig) Invocations

func (fake *FakeRoomConfig) Invocations() map[string][][]interface{}

func (*FakeRoomConfig) SetDefaultLanguage

func (fake *FakeRoomConfig) SetDefaultLanguage(arg1 context.Context, arg2 string) error

func (*FakeRoomConfig) SetDefaultLanguageArgsForCall

func (fake *FakeRoomConfig) SetDefaultLanguageArgsForCall(i int) (context.Context, string)

func (*FakeRoomConfig) SetDefaultLanguageCallCount

func (fake *FakeRoomConfig) SetDefaultLanguageCallCount() int

func (*FakeRoomConfig) SetDefaultLanguageCalls

func (fake *FakeRoomConfig) SetDefaultLanguageCalls(stub func(context.Context, string) error)

func (*FakeRoomConfig) SetDefaultLanguageReturns

func (fake *FakeRoomConfig) SetDefaultLanguageReturns(result1 error)

func (*FakeRoomConfig) SetDefaultLanguageReturnsOnCall

func (fake *FakeRoomConfig) SetDefaultLanguageReturnsOnCall(i int, result1 error)

func (*FakeRoomConfig) SetPrivacyMode

func (fake *FakeRoomConfig) SetPrivacyMode(arg1 context.Context, arg2 roomdb.PrivacyMode) error

func (*FakeRoomConfig) SetPrivacyModeArgsForCall

func (fake *FakeRoomConfig) SetPrivacyModeArgsForCall(i int) (context.Context, roomdb.PrivacyMode)

func (*FakeRoomConfig) SetPrivacyModeCallCount

func (fake *FakeRoomConfig) SetPrivacyModeCallCount() int

func (*FakeRoomConfig) SetPrivacyModeCalls

func (fake *FakeRoomConfig) SetPrivacyModeCalls(stub func(context.Context, roomdb.PrivacyMode) error)

func (*FakeRoomConfig) SetPrivacyModeReturns

func (fake *FakeRoomConfig) SetPrivacyModeReturns(result1 error)

func (*FakeRoomConfig) SetPrivacyModeReturnsOnCall

func (fake *FakeRoomConfig) SetPrivacyModeReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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