Files
EasyTier/easytier-go/host.go
KKRainbow 3d0c9c3ca5 chore(go): use lowercase module import path (#2560)
* chore(go): use lowercase module import path
* ci: scope checks for Go module changes
2026-09-10 15:13:55 +08:00

37 lines
844 B
Go

package host
import (
"context"
internalhost "github.com/easytier/easytier/easytier-go/internal/host"
)
type State = internalhost.State
const (
StateCreated State = internalhost.StateCreated
StateStarting State = internalhost.StateStarting
StateRunning State = internalhost.StateRunning
StateStopping State = internalhost.StateStopping
StateStopped State = internalhost.StateStopped
)
type Options = internalhost.Options
type EmbeddedCoreInfo = internalhost.EmbeddedCoreInfo
// Event is one best-effort notification emitted by an EasyTier instance.
type Event = internalhost.Event
type Host = internalhost.Host
type Instance = internalhost.Instance
func New(ctx context.Context, options Options) (*Host, error) {
return internalhost.New(ctx, options)
}
func CoreInfo() EmbeddedCoreInfo {
return internalhost.CoreInfo()
}