mirror of
https://github.com/lightninglabs/aperture.git
synced 2025-12-18 01:24:19 +01:00
26 lines
489 B
Go
26 lines
489 B
Go
package auth_test
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/lightninglabs/aperture/auth"
|
|
"github.com/lightninglabs/aperture/mint"
|
|
"github.com/lightninglabs/loop/lsat"
|
|
"gopkg.in/macaroon.v2"
|
|
)
|
|
|
|
type mockMint struct {
|
|
}
|
|
|
|
var _ auth.Minter = (*mockMint)(nil)
|
|
|
|
func (m *mockMint) MintLSAT(_ context.Context,
|
|
services ...lsat.Service) (*macaroon.Macaroon, string, error) {
|
|
|
|
return nil, "", nil
|
|
}
|
|
|
|
func (m *mockMint) VerifyLSAT(_ context.Context, p *mint.VerificationParams) error {
|
|
return nil
|
|
}
|