api

package
v0.0.0-...-69d5e98 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*grpc.ClientConn
	// contains filtered or unexported fields
}

func NewClient

func NewClient(socket string) (*Client, error)

func (*Client) GetInterfaces

func (c *Client) GetInterfaces(ctx context.Context) ([]*rpc.Interface, error)

func (*Client) GetServices

func (c *Client) GetServices(ctx context.Context) ([]config.ServiceID, error)

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context) (string, error)

func (*Client) Shutdown

func (c *Client) Shutdown(ctx context.Context) error

type Server

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

func NewServer

func NewServer(serviceManager *services.ServiceManager, socket string, shutdown context.CancelFunc, version string) *Server

func (*Server) GetInterfaces

func (s *Server) GetInterfaces(ctx context.Context) ([]*rpc.Interface, error)

func (*Server) GetServices

func (s *Server) GetServices(ctx context.Context) ([]config.ServiceID, error)

func (*Server) GetVersion

func (s *Server) GetVersion(ctx context.Context) (string, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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