service

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package service provides the inventory server implementation It implements the RPC methods for the inventory server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InventoryServer

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

InventoryServer implements the inventory server interface

func NewInventoryServer

func NewInventoryServer(storage inventory.Storage) *InventoryServer

NewInventoryServer creates a new server with the provided storage

func (*InventoryServer) Search added in v0.2.0

func (c *InventoryServer) Search(query string, reply *[]inventory.Report) error

Search is the method that the client will call to search for reports It takes a query string and returns a list of reports that match the query

func (*InventoryServer) Update

func (c *InventoryServer) Update(report *inventory.Report, reply *int) error

Update is the method that the client will call to send a report

Jump to

Keyboard shortcuts

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