Documentation
¶
Index ¶
Constants ¶
View Source
const VersionByte = 0x0c
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SunriseConfig ¶
type SunriseServer ¶
type SunriseServer struct {
// contains filtered or unexported fields
}
func NewSunriseServer ¶
func NewSunriseServer(host string, port int, store *SunriseStore, log log.Logger) *SunriseServer
func (*SunriseServer) Endpoint ¶
func (b *SunriseServer) Endpoint() string
func (*SunriseServer) HandleGet ¶
func (d *SunriseServer) HandleGet(w http.ResponseWriter, r *http.Request)
func (*SunriseServer) HandlePut ¶
func (d *SunriseServer) HandlePut(w http.ResponseWriter, r *http.Request)
func (*SunriseServer) Start ¶
func (d *SunriseServer) Start() error
func (*SunriseServer) Stop ¶
func (b *SunriseServer) Stop() error
type SunriseStore ¶
type SunriseStore struct { Log log.Logger Config SunriseConfig GetTimeout time.Duration Namespace []byte }
SunriseStore implements DAStorage with sunrise-data backend
func NewSunriseStore ¶
func NewSunriseStore(cfg SunriseConfig, log log.Logger) *SunriseStore
NewSunriseStore returns a sunrise store.
Click to show internal directories.
Click to hide internal directories.