Documentation ¶
Index ¶
- func Connect(callback func(ctx context.Context, c proto.MidgardClient))
- type Daemon
- func (m *Daemon) AllocateURL(ctx context.Context, in *proto.AllocateURLInput) (*proto.AllocateURLOutput, error)
- func (m *Daemon) CodeToImage(ctx context.Context, in *proto.CodeToImageInput) (out *proto.CodeToImageOutput, err error)
- func (m *Daemon) ListDaemons(ctx context.Context, in *proto.ListDaemonsInput) (out *proto.ListDaemonsOutput, err error)
- func (m *Daemon) Ping(ctx context.Context, in *proto.PingInput) (*proto.PingOutput, error)
- func (m *Daemon) Run(ctx context.Context) (onStart, onStop func() error)
- func (m *Daemon) Serve(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Daemon ¶
type Daemon struct { sync.Mutex ID string proto.UnimplementedMidgardServer // contains filtered or unexported fields }
Daemon is the midgard daemon that interact with midgard server.
func (*Daemon) AllocateURL ¶
func (m *Daemon) AllocateURL(ctx context.Context, in *proto.AllocateURLInput) (*proto.AllocateURLOutput, error)
AllocateURL request the midgard server to allocate a given URL for a given resource, or the content from the midgard universal clipboard.
func (*Daemon) CodeToImage ¶
func (m *Daemon) CodeToImage(ctx context.Context, in *proto.CodeToImageInput) (out *proto.CodeToImageOutput, err error)
CodeToImage tries to create an image for the given code.
func (*Daemon) ListDaemons ¶
func (m *Daemon) ListDaemons(ctx context.Context, in *proto.ListDaemonsInput) (out *proto.ListDaemonsOutput, err error)
ListDaemons lists all active daemons.
Click to show internal directories.
Click to hide internal directories.