gecko/snow/engine/common/http_handler.go

25 lines
417 B
Go
Raw Normal View History

2020-03-10 12:20:34 -07:00
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package common
import (
"net/http"
)
// LockOption allows the vm to specify their lock option based on their endpoint
type LockOption int
// List of all allowed options
const (
WriteLock = iota
ReadLock
NoLock
)
// HTTPHandler ...
type HTTPHandler struct {
LockOptions LockOption
Handler http.Handler
}