Documentation
¶
Index ¶
- Variables
- type Config
- type Endpoint
- type Peer
- type Pinned
- type Service
- func (s *Service) GetPeers(ctx context.Context) ([]Peer, error)
- func (s *Service) IsPinned(ctx context.Context, CID string) (res bool, err error)
- func (s *Service) Pin(ctx context.Context, CID string) (res Pinned, err error)
- func (s *Service) Upload(ctx context.Context, reader io.Reader) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEndpoint = errs.Class("ipfs endpoint")
ErrEndpoint - ipfs endpoint error class.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Address string `help:"IPFS multiaddress of the IPFS node" releaseDefault:"" devDefault:""`
}
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
architecture: Endpoint
func NewEndpoint ¶
NewEndpoint creates new ipfs endpoint instance.
func (*Endpoint) Peers ¶
func (endpoint *Endpoint) Peers(w http.ResponseWriter, r *http.Request)
Peers endpoint retrieves all the active Peers
func (*Endpoint) Pinned ¶
func (endpoint *Endpoint) Pinned(writer http.ResponseWriter, request *http.Request)
Click to show internal directories.
Click to hide internal directories.