@@ -0,0 +1,16 @@
|
||||
//go:build !windows
|
||||
|
||||
package windowsx
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/example/sessionguard/internal/model"
|
||||
)
|
||||
|
||||
var ErrUnsupported = errors.New("Windows functionality is only available on Windows")
|
||||
|
||||
func Sessions() ([]model.Session, error) { return nil, ErrUnsupported }
|
||||
func Server() (model.ServerInfo, error) { return model.ServerInfo{}, ErrUnsupported }
|
||||
func ProfilePath(string) (string, error) { return "", ErrUnsupported }
|
||||
func DeleteProfile(string) error { return ErrUnsupported }
|
||||
func MachineID() (string, error) { return "nonwindows", nil }
|
||||
Reference in New Issue
Block a user