common

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: BSD-3-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
}

type ClientConfig

type ClientConfig struct {
	CommonConfig
}

type CommonConfig

type CommonConfig struct {
	Disabled bool
	Port     int
	Root     string
}

type Service

type Service interface {
	Node() peer.Node
	Close() error
}

type ServiceConfig

type ServiceConfig struct {
	CommonConfig
	Ctx        context.Context
	Others     map[string]int
	PublicKey  []byte
	PrivateKey []byte
	SwarmKey   []byte
	Databases  kvdb.Factory
}

func (*ServiceConfig) Clone

func (c *ServiceConfig) Clone() *ServiceConfig

type SimpleConfig

type SimpleConfig struct {
	CommonConfig
	Clients map[string]ClientConfig
}

Jump to

Keyboard shortcuts

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