Documentation ¶
Index ¶
- func NewCoapHandler(store eris.Store) (r *mux.Router)
- func ServeCoap(network, address string, store eris.Store) error
- type CoapStore
- func (store *CoapStore) Allowed() eris.AllowOps
- func (store *CoapStore) Close() (err error)
- func (server *CoapStore) Drop(ref eris.Ref) error
- func (store *CoapStore) Get(ctx context.Context, chunk []byte, ref eris.Ref) (err error)
- func (store *CoapStore) Has(ctx context.Context, ref eris.Ref, chunkSize int) (present bool)
- func (store *CoapStore) Put(ctx context.Context, chunk []byte, ref eris.Ref) (err error)
- type CoapTcpServer
- func (server *CoapTcpServer) Allowed() eris.AllowOps
- func (server *CoapTcpServer) Close() (err error)
- func (server *CoapTcpServer) Drop(ref eris.Ref) error
- func (server *CoapTcpServer) Get(ctx context.Context, chunk []byte, ref eris.Ref) (err error)
- func (server *CoapTcpServer) Has(ctx context.Context, ref eris.Ref, chunkSize int) bool
- func (server *CoapTcpServer) Put(ctx context.Context, chunk []byte, ref eris.Ref) (err error)
- func (s *CoapTcpServer) Serve(network, address string) error
- func (s *CoapTcpServer) Stop()
- type CoapUdpServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoapStore ¶
type CoapStore struct {
// contains filtered or unexported fields
}
func NewTcpClient ¶
type CoapTcpServer ¶
type CoapTcpServer struct {
// contains filtered or unexported fields
}
func NewTcpServer ¶
func NewTcpServer(store eris.Store) (s *CoapTcpServer)
func (*CoapTcpServer) Allowed ¶
func (server *CoapTcpServer) Allowed() eris.AllowOps
func (*CoapTcpServer) Close ¶
func (server *CoapTcpServer) Close() (err error)
This Close method is a no-op.
func (*CoapTcpServer) Get ¶
Get a chunk from a CoapTcpServer. The chunk is requested from the backend storage and if this fails then the chunk is requested from the other clients of the server.
func (*CoapTcpServer) Serve ¶
func (s *CoapTcpServer) Serve(network, address string) error
func (*CoapTcpServer) Stop ¶
func (s *CoapTcpServer) Stop()
type CoapUdpServer ¶
type CoapUdpServer struct {
// contains filtered or unexported fields
}
func NewUdpServer ¶
func NewUdpServer(store eris.Store) *CoapUdpServer
func (*CoapUdpServer) Serve ¶
func (s *CoapUdpServer) Serve(network, address string) error
func (*CoapUdpServer) Stop ¶
func (s *CoapUdpServer) Stop()
Click to show internal directories.
Click to hide internal directories.