Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OperatorTLSKeyFile is the name of the TLS key file for the Operator // interface. OperatorTLSKeyFile = "key.pem" // OperatorTLSCertFile is the name of the TLS certificate file for the // Operator interface. OperatorTLSCertFile = "cert.pem" // Location is used as the macaroon's location hint. This is not verified as // part of the macaroons itself. Check the doc for more info: // https://github.com/go-macaroon/macaroon#func-macaroon-location. Location = "tdexd" // DbFile is the name of the macaroon database file. DBFile = "macaroons.db" // AdminMacaroonFile is the name of the admin macaroon. AdminMacaroonFile = "admin.macaroon" // ReadOnlyMacaroonFile is the name of the read-only macaroon. ReadOnlyMacaroonFile = "readonly.macaroon" // MarketMacaroonFile is the name of the macaroon allowing to open, close and // update the strategy of a market. MarketMacaroonFile = "market.macaroon" // PriceMacaroonFile is the name of the macaroon allowing to update only the // prices of markets. PriceMacaroonFile = "price.macaroon" // WalletMacaroonFile is the name of the macaroon allowing to manage the // so called "Wallet" subaccount of the daemon's wallet. WalletMacaroonFile = "wallet.macaroon" // WebhookMacaroonFile is the name of the macaroon allowing to add, remove or // list webhooks. WebhookMacaroonFile = "webhook.macaroon" )
Variables ¶
View Source
var ( Macaroons = map[string][]bakery.Op{ AdminMacaroonFile: permissions.AdminPermissions(), ReadOnlyMacaroonFile: permissions.ReadOnlyPermissions(), MarketMacaroonFile: permissions.MarketPermissions(), PriceMacaroonFile: permissions.PricePermissions(), WebhookMacaroonFile: permissions.WebhookPermissions(), WalletMacaroonFile: permissions.WalletPermissions(), } )
Functions ¶
func NewService ¶
func NewService(opts ServiceOpts) (interfaces.Service, error)
func NewServiceOnePort ¶ added in v0.8.15
func NewServiceOnePort(opts ServiceOptsOnePort) (interfaces.Service, error)
Types ¶
type ServiceOpts ¶
type ServiceOpts struct { NoMacaroons bool Datadir string DBLocation string TLSLocation string MacaroonsLocation string OperatorExtraIPs []string OperatorExtraDomains []string WalletUnlockPasswordFile string OperatorPort int TradePort int TradeTLSKey string TradeTLSCert string AppConfig *application.Config BuildData ports.BuildData NoOperatorTls bool ConnectAddr string ConnectProto string }
type ServiceOptsOnePort ¶ added in v0.8.15
Click to show internal directories.
Click to hide internal directories.