server

package
v0.0.0-...-a2e4898 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

Client makes requests to a listening pomo server to check the status of any currently running task session.

func NewClient

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

NewClient initializes a new Client instance

func (*Client) Close

func (c *Client) Close() error

Close closes the client connection

func (*Client) Status

func (c *Client) Status() (*Status, error)

Status requests the status from the server

type Runner

type Runner interface {
	Status() *Status
}

type Server

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

Server listens on a Unix domain socket for Pomo status requests

func NewServer

func NewServer(runner Runner) (*Server, error)

func (*Server) Start

func (s *Server) Start()

Start begins the server's listening process

func (*Server) Stop

func (s *Server) Stop()

Stop halts the server's listening process

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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