daemon

package
v0.0.0-...-e226e9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

func SocketFile

func SocketFile() string

Types

type Args

type Args struct{}

type ClaimArgs

type ClaimArgs struct {
	Host string
}

type ClaimReply

type ClaimReply struct {
	Port int
}

type Daemon

type Daemon struct {
	// contains filtered or unexported fields
}

func (*Daemon) Claim

func (d *Daemon) Claim(args *ClaimArgs, reply *ClaimReply) error

func (*Daemon) List

func (d *Daemon) List(args *Args, reply *ListReply) error

func (*Daemon) Resolve

func (d *Daemon) Resolve(args *ResolveArgs, reply *ResolveReply) error

type ListReply

type ListReply struct {
	List []MagicHost
}

type MagicHost

type MagicHost struct {
	Host string
	Port int
}

type Reply

type Reply struct{}

type ResolveArgs

type ResolveArgs struct {
	Hostname string
}

type ResolveReply

type ResolveReply struct {
	Host string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL