Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Name string `json:"name"` EndorsingOrganizations []string `json:"endorsing_organizations"` CapabilityLevel string `json:"capability_level"` }
Channel represents a channel in the configuration.
type Config ¶
type Config struct { Domain string `json:"domain"` Port int `json:"port"` Directory string `json:"directory"` OrderingOrganization Organization `json:"ordering_organization"` EndorsingOrganizations []Organization `json:"endorsing_organizations"` Channels []Channel `json:"channels"` CapabilityLevel string `json:"capability_level"` CouchDB bool `json:"couchdb"` CertificateAuthorities bool `json:"certificate_authorities"` TimeoutString string `json:"timeout"` TLS TLS `json:"tls"` Timeout time.Duration `json:"-"` }
Config represents the configuration.
func DefaultConfig ¶
DefaultConfig returns the default configuration.
type Organization ¶
type Organization struct {
Name string `json:"name"`
}
Organization represents an organization in the configuration.
Click to show internal directories.
Click to hide internal directories.