client

package
v0.0.0-...-847e23e Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Key clientKey = "client"

Functions

func ClientInterceptor

func ClientInterceptor(clientSettings Settings) grpc.UnaryServerInterceptor

Types

type Item

type Item struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Settings

type Settings struct {
	Clients        []Item
	ClientFilePath string
}

func (*Settings) GetClient

func (s *Settings) GetClient(id string) *Item

func (*Settings) LoadClients

func (s *Settings) LoadClients() error

Jump to

Keyboard shortcuts

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