package pogs

import (
	"context"

	"github.com/google/uuid"
)

// mockTunnelServerBase provides a placeholder implementation
// for TunnelServer interface that can be used to build
// mocks for specific unit tests without having to implement every method
type mockTunnelServerBase struct{}

func (mockTunnelServerBase) RegisterConnection(ctx context.Context, auth TunnelAuth, tunnelID uuid.UUID, connIndex byte, options *ConnectionOptions) (*ConnectionDetails, error) {
	panic("unexpected call to RegisterConnection")
}

func (mockTunnelServerBase) UnregisterConnection(ctx context.Context) {
	panic("unexpected call to UnregisterConnection")
}

func (mockTunnelServerBase) RegisterTunnel(ctx context.Context, originCert []byte, hostname string, options *RegistrationOptions) *TunnelRegistration {
	panic("unexpected call to RegisterTunnel")
}

func (mockTunnelServerBase) GetServerInfo(ctx context.Context) (*ServerInfo, error) {
	panic("unexpected call to GetServerInfo")
}

func (mockTunnelServerBase) UnregisterTunnel(ctx context.Context, gracePeriodNanoSec int64) error {
	panic("unexpected call to UnregisterTunnel")
}

func (mockTunnelServerBase) Authenticate(ctx context.Context, originCert []byte, hostname string, options *RegistrationOptions) (*AuthenticateResponse, error) {
	panic("unexpected call to Authenticate")
}

func (mockTunnelServerBase) ReconnectTunnel(ctx context.Context, jwt, eventDigest, connDigest []byte, hostname string, options *RegistrationOptions) (*TunnelRegistration, error) {
	panic("unexpected call to ReconnectTunnel")
}