Documentation
¶
Index ¶
- func HandleGet(store eris.Store, w mux.ResponseWriter, r *mux.Message)
- func HandlePut(store eris.Store, w mux.ResponseWriter, r *mux.Message)
- type Endpoint
- func (ep *Endpoint) AddPeer(host, port string, allow eris.AllowOps) (err error)
- func (store *Endpoint) Allowed() eris.AllowOps
- func (ep *Endpoint) Close() (err error)
- func (ep *Endpoint) Drop(ref eris.Ref) error
- func (ep *Endpoint) Get(ctx context.Context, chunk []byte, ref eris.Ref) (err error)
- func (ep *Endpoint) Has(ctx context.Context, ref eris.Ref, chunkSize int) bool
- func (ep *Endpoint) Put(ctx context.Context, chunk []byte, ref eris.Ref) (err error)
- func (ep *Endpoint) ServeMulticastLink(face string, allow eris.AllowOps) error
- func (ep *Endpoint) ServeMulticastSite(face string, allow eris.AllowOps) error
- func (ep *Endpoint) ServeUnicast(host, port string, allow eris.AllowOps) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func NewEndpoint ¶
Create a new CoAP endpoint that serves ERIS blocks from the given store.
func NewMulticastClient ¶
Create a new CoAP client that attemps multicast peers discovery on all interfaces. The passed store is used to respond to peer requests and may be nil.
func (*Endpoint) ServeMulticastLink ¶
func (*Endpoint) ServeMulticastSite ¶
Click to show internal directories.
Click to hide internal directories.