client

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 6 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 wraps the gRPC client with convenience methods

func NewClient

func NewClient(cfg Config) (*Client, error)

NewClient creates a new client instance

func (*Client) Close

func (c *Client) Close() error

Close closes the client connection

func (*Client) GetConfig

func (c *Client) GetConfig() (*pb.Config, error)

GetConfig retrieves the devloop configuration

func (*Client) GetRuleStatus

func (c *Client) GetRuleStatus(ruleName string) (*pb.Rule, error)

GetRuleStatus retrieves the status of a specific rule

func (*Client) ListWatchedPaths

func (c *Client) ListWatchedPaths() ([]string, error)

ListWatchedPaths retrieves all watched file patterns

func (*Client) Ping

func (c *Client) Ping() error

Ping tests connectivity to the devloop server

func (*Client) TriggerRule

func (c *Client) TriggerRule(ruleName string) (*pb.TriggerRuleResponse, error)

TriggerRule triggers execution of a specific rule

type Config

type Config struct {
	Address        string
	RequestTimeout time.Duration
}

Config holds client configuration

Jump to

Keyboard shortcuts

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