mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-08 19:06:14 -08:00
* chore(go): use lowercase module import path * ci: scope checks for Go module changes
37 lines
844 B
Go
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()
|
|
}
|