Documentation ¶
Index ¶
- Variables
- type BaseDatabase
- type BaseLocalNetwork
- func (no BaseLocalNetwork) Bind() *url.URL
- func (no BaseLocalNetwork) Cache() *url.URL
- func (no BaseLocalNetwork) Certs() []tls.Certificate
- func (no BaseLocalNetwork) SealCache() *url.URL
- func (no *BaseLocalNetwork) SetBind(s string) error
- func (no *BaseLocalNetwork) SetCache(s string) error
- func (no *BaseLocalNetwork) SetCerts(certs []tls.Certificate) error
- func (no *BaseLocalNetwork) SetSealCache(s string) error
- type BaseNodeNetwork
- type Database
- type DatabaseYAML
- type LocalNetwork
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultLocalNetworkURL = &url.URL{Scheme: "https", Host: "127.0.0.1:54321"} DefaultLocalNetworkBind = &url.URL{Scheme: "https", Host: "0.0.0.0:54321"} DefaultLocalNetworkCache = "gcache:?type=lru&size=100&expire=3s" DefaultLocalNetworkSealCache = "gcache:?type=lru&size=10000&expire=3m" )
View Source
var ( DefaultDatabaseURI = "mongodb://127.0.0.1:27017/mitum" DefaultDatabaseCache = fmt.Sprintf( "gcache:?type=%s&size=%d&expire=%s", cache.DefaultGCacheType, cache.DefaultGCacheSize, cache.DefaultCacheExpire.String(), ) DefaultDatabaseCacheURL *url.URL )
Functions ¶
This section is empty.
Types ¶
type BaseDatabase ¶
type BaseDatabase struct {
// contains filtered or unexported fields
}
func (BaseDatabase) Cache ¶
func (no BaseDatabase) Cache() *url.URL
func (*BaseDatabase) SetCache ¶
func (no *BaseDatabase) SetCache(s string) error
func (*BaseDatabase) SetURI ¶
func (no *BaseDatabase) SetURI(s string) error
func (BaseDatabase) URI ¶
func (no BaseDatabase) URI() *url.URL
type BaseLocalNetwork ¶
type BaseLocalNetwork struct { *BaseNodeNetwork // contains filtered or unexported fields }
func EmptyBaseLocalNetwork ¶
func EmptyBaseLocalNetwork() *BaseLocalNetwork
func (BaseLocalNetwork) Bind ¶
func (no BaseLocalNetwork) Bind() *url.URL
func (BaseLocalNetwork) Cache ¶
func (no BaseLocalNetwork) Cache() *url.URL
func (BaseLocalNetwork) Certs ¶
func (no BaseLocalNetwork) Certs() []tls.Certificate
func (BaseLocalNetwork) SealCache ¶
func (no BaseLocalNetwork) SealCache() *url.URL
func (*BaseLocalNetwork) SetBind ¶
func (no *BaseLocalNetwork) SetBind(s string) error
func (*BaseLocalNetwork) SetCache ¶
func (no *BaseLocalNetwork) SetCache(s string) error
func (*BaseLocalNetwork) SetCerts ¶
func (no *BaseLocalNetwork) SetCerts(certs []tls.Certificate) error
func (*BaseLocalNetwork) SetSealCache ¶
func (no *BaseLocalNetwork) SetSealCache(s string) error
type BaseNodeNetwork ¶
type BaseNodeNetwork struct {
// contains filtered or unexported fields
}
func EmptyBaseNodeNetwork ¶
func EmptyBaseNodeNetwork() *BaseNodeNetwork
func (BaseNodeNetwork) ConnInfo ¶
func (no BaseNodeNetwork) ConnInfo() util.HTTPConnInfo
func (*BaseNodeNetwork) SetConnInfo ¶
func (no *BaseNodeNetwork) SetConnInfo(c util.HTTPConnInfo) error
type DatabaseYAML ¶
type LocalNetwork ¶
Click to show internal directories.
Click to hide internal directories.