Documentation ¶
Index ¶
- type App
- type Cache
- func (c *Cache) HandleCacheInfo(w http.ResponseWriter, r *http.Request)
- func (c *Cache) HandleCacheNarinfo(w http.ResponseWriter, r *http.Request)
- func (c *Cache) HandleCacheRead(w http.ResponseWriter, r *http.Request)
- func (c *Cache) HandleUploadNar(w http.ResponseWriter, r *http.Request)
- func (c *Cache) HandleUploadNarinfo(w http.ResponseWriter, r *http.Request)
- func (c *Cache) Priority() int8
- type Config
- type ConfigSubstituter
- type NarinfoCache
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) HandleCacheInfo ¶
func (c *Cache) HandleCacheInfo(w http.ResponseWriter, r *http.Request)
func (*Cache) HandleCacheNarinfo ¶
func (c *Cache) HandleCacheNarinfo(w http.ResponseWriter, r *http.Request)
func (*Cache) HandleCacheRead ¶
func (c *Cache) HandleCacheRead(w http.ResponseWriter, r *http.Request)
func (*Cache) HandleUploadNar ¶
func (c *Cache) HandleUploadNar(w http.ResponseWriter, r *http.Request)
func (*Cache) HandleUploadNarinfo ¶
func (c *Cache) HandleUploadNarinfo(w http.ResponseWriter, r *http.Request)
type Config ¶
type Config struct { Priority *int8 `yaml:"priority,omitempty"` Public *bool `yaml:"public,omitempty"` PrivateKey PrivateKey `yaml:"private_key,omitempty"` Substituters []ConfigSubstituter `yaml:"substituters,omitempty"` }
type ConfigSubstituter ¶
type NarinfoCache ¶
type PrivateKey ¶
type PrivateKey struct { ed25519.PrivateKey Identifier string }
func (PrivateKey) MarshalYAML ¶
func (c PrivateKey) MarshalYAML() (interface{}, error)
func (*PrivateKey) PublicKey ¶
func (c *PrivateKey) PublicKey() PublicKey
func (*PrivateKey) UnmarshalYAML ¶
func (c *PrivateKey) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.