Documentation
¶
Index ¶
- Constants
- func HttpServe(service *Service, port int)
- func NameHash(name string) common.Hash
- type ConsortiumManifest
- type ConsortiumMember
- type ENSClient
- type ENSClientImpl
- type IPFSClient
- type Ipfsc
- func (i *Ipfsc) ENS() ENSClient
- func (i *Ipfsc) IPFS() IPFSClient
- func (i *Ipfsc) Read(ensname string) (interface{}, error)
- func (i *Ipfsc) WriteConsortiumManifest(ensname string, manifest *ConsortiumManifest) error
- func (i *Ipfsc) WritePinningManifest(ensname string, manifest *PinningManifest) error
- type PinningManifest
- type ServerInfo
- type Service
- type ServiceStats
Constants ¶
View Source
const (
DefaultManifestKey = "consortiumManifest"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsortiumManifest ¶
type ConsortiumManifest struct { Quotum string `json:"quotum"` Members []ConsortiumMember // contains filtered or unexported fields }
type ConsortiumMember ¶
type ENSClient ¶
type ENSClient interface { Info(name string) (string, error) Text(name, key string) (string, error) SetText(name, key, text string) error }
func NewENSClient ¶
type ENSClientImpl ¶
type ENSClientImpl struct {
// contains filtered or unexported fields
}
func (*ENSClientImpl) SetText ¶
func (e *ENSClientImpl) SetText(name, key, text string) error
type IPFSClient ¶
type Ipfsc ¶
type Ipfsc struct {
// contains filtered or unexported fields
}
func NewIPFSCClient ¶
func NewIPFSCClient(ipfs IPFSClient, ens ENSClient) *Ipfsc
func (*Ipfsc) IPFS ¶
func (i *Ipfsc) IPFS() IPFSClient
func (*Ipfsc) WriteConsortiumManifest ¶
func (i *Ipfsc) WriteConsortiumManifest(ensname string, manifest *ConsortiumManifest) error
func (*Ipfsc) WritePinningManifest ¶
func (i *Ipfsc) WritePinningManifest(ensname string, manifest *PinningManifest) error
type PinningManifest ¶
type ServerInfo ¶
type ServerInfo struct { Current ServiceStats `json:"current"` Last ServiceStats `json:"last"` }
Click to show internal directories.
Click to hide internal directories.