common

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

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 RepositoryType added in v1.1.10

type RepositoryType int
const (
	UnknownRepository RepositoryType = iota
	ConfigRepository
	CodeRepository
	LibraryRepository
	WebsiteRepository
)

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
	Location   seerIface.Location
}

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