client

package
v0.0.0-...-05cdca5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientApp

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

ClientApp - client application

func NewClientApp

func NewClientApp(cfg Config) *ClientApp

NewClientApp - constructor composition root

func (*ClientApp) Run

func (c *ClientApp) Run() error

Run - run client

func (*ClientApp) Stop

func (c *ClientApp) Stop() error

Stop - stop client

type Config

type Config struct {
	GRPCAddr  string `json:"grpc_address"` // gRPC server address
	Config    string `json:"-"`            // config file path
	Debug     bool   `json:"-"`            // is debug mode
	CryptoKey string `json:"crypto_key"`   // crypto key
}

Config - server config

func NewConfig

func NewConfig() *Config

NewConfig - create new config

func (*Config) UseFlags

func (cfg *Config) UseFlags()

UseFlags - use flags

func (*Config) UseJsonConfigFile

func (cfg *Config) UseJsonConfigFile() (*Config, error)

UseJsonConfigFile - use config file

Directories

Path Synopsis
gui

Jump to

Keyboard shortcuts

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