client

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package client contains code for working with Merlin Command Line Interface (CLI) clients connected over gRPC

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
}

func NewClient

func NewClient() Client

func NewClientWithID

func NewClientWithID(id uuid.UUID) Client

func (Client) ID

func (c Client) ID() uuid.UUID

type Repository

type Repository interface {
	Add(client Client)
	Get(id uuid.UUID) (client Client, err error)
	GetAll() (clients []Client)
}

Directories

Path Synopsis
Package message is used to handle messages created by the Merlin server that need to sent to CLI clients
Package message is used to handle messages created by the Merlin server that need to sent to CLI clients
memory
Package memory provides an in-memory repository for messages
Package memory provides an in-memory repository for messages

Jump to

Keyboard shortcuts

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