groupreq

package
v0.0.0-...-9346f78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubRequest

func NewSubRequest(ctx context.Context, forceNew bool) *pargraphsync.SubRequest

Types

type GroupRequest

type GroupRequest struct {
	// contains filtered or unexported fields
}

func NewGroupRequest

func NewGroupRequest(ctx context.Context) *GroupRequest

func (*GroupRequest) Add

func (gr *GroupRequest) Add(subReq *pargraphsync.SubRequest)

func (*GroupRequest) Delete

func (gr *GroupRequest) Delete(subReqId graphsync.RequestID)

func (*GroupRequest) Get

func (gr *GroupRequest) Get(subReqId graphsync.RequestID) *pargraphsync.SubRequest

func (*GroupRequest) GetContext

func (gr *GroupRequest) GetContext() context.Context

func (*GroupRequest) GetGroupRequestID

func (gr *GroupRequest) GetGroupRequestID() graphsync.RequestID

func (*GroupRequest) Has

func (gr *GroupRequest) Has(subReqId graphsync.RequestID) bool

func (*GroupRequest) RangeSubRequests

func (gr *GroupRequest) RangeSubRequests(f func(subReqId graphsync.RequestID, subReq *pargraphsync.SubRequest) bool)

type GroupRequestManager

type GroupRequestManager struct {
	// contains filtered or unexported fields
}

func NewGroupRequestManager

func NewGroupRequestManager() *GroupRequestManager

func (*GroupRequestManager) Add

func (grm *GroupRequestManager) Add(groupReq *GroupRequest)

func (*GroupRequestManager) Delete

func (grm *GroupRequestManager) Delete(groupReqId graphsync.RequestID) *GroupRequest

func (*GroupRequestManager) Get

func (grm *GroupRequestManager) Get(groupReqId graphsync.RequestID) *GroupRequest

func (*GroupRequestManager) GetBySubRequestId

func (grm *GroupRequestManager) GetBySubRequestId(subReqId graphsync.RequestID) *GroupRequest

func (*GroupRequestManager) GetOrAdd

func (grm *GroupRequestManager) GetOrAdd(groupReq *GroupRequest) (gr *GroupRequest, loaded bool)

func (*GroupRequestManager) Has

func (grm *GroupRequestManager) Has(groupReqId graphsync.RequestID) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL