Versions in this module Expand all Collapse all v2 v2.3.0 Sep 27, 2023 Changes in this version type Option + func WithConfigID(cid string) Option v2.2.0 Sep 5, 2023 v2.1.0 Jul 14, 2023 v2.0.0 Jul 6, 2023 Changes in this version + const Left + const Right + func SearchAll(ctx context.Context, client Client, input *SearchInput) (*Root, SearchEvents, error) + type ArweaveRootsProvider struct + Client *arweave.Arweave + Roots map[int]Root + TreeName string + func NewArweaveRootsProvider(treeName string) *ArweaveRootsProvider + func (rp *ArweaveRootsProvider) UpdateRoots(ctx context.Context, treeSizes []string) map[int]Root + type Client interface + GetPendingRequestID func() []string + Log func(context.Context, any, bool) (*pangea.PangeaResponse[LogResult], error) + PollResultByError func(ctx context.Context, e pangea.AcceptedError) (*pangea.PangeaResponse[any], error) + PollResultByID func(ctx context.Context, rid string, v any) (*pangea.PangeaResponse[any], error) + PollResultRaw func(ctx context.Context, requestID string) (*pangea.PangeaResponse[map[string]any], error) + Root func(context.Context, *RootInput) (*pangea.PangeaResponse[RootOutput], error) + Search func(context.Context, *SearchInput) (*pangea.PangeaResponse[SearchOutput], error) + SearchResults func(context.Context, *SearchResultsInput) (*pangea.PangeaResponse[SearchResultsOutput], error) + func New(cfg *pangea.Config, opts ...Option) (Client, error) + type EventEnvelope struct + Event any + PublicKey *string + ReceivedAt *pu.PangeaTimestamp + Signature *string + func (ee *EventEnvelope) VerifySignature() EventVerification + type EventVerification int + const Failed + const NotVerified + const Success + func VerifyHash(ee map[string]any, h string) EventVerification + func VerifyMembershipProof(rootHashEnc, h string, membershipProof string) (EventVerification, error) + func (ev EventVerification) String() string + type LogRequest struct + Event any + PrevRoot *string + PublicKey *string + Signature *string + Verbose bool + func (i *LogRequest) SignEvent(s signer.Signer, pki map[string]string) error + type LogResult struct + ConcistencyVerification EventVerification + ConsistencyProof *[]string + EventEnvelope *EventEnvelope + Hash string + MembershipProof *string + MembershipVerification EventVerification + RawEnvelope map[string]any + SignatureVerification EventVerification + UnpublishedRootHash *string + type LogSigningMode int + const LocalSign + const Unsigned + type Option func(*audit) error + func DisableEventVerification() Option + func SetPublicKeyInfo(pkinfo map[string]string) Option + func WithCustomSchema(schema any) Option + func WithLogLocalSigning(filename string) Option + func WithLogProofVerificationEnabled() Option + func WithTenantID(tenantID string) Option + type Root struct + ConsistencyProof *[]string + PublishedAt *time.Time + RootHash string + Size int + TreeName string + URL *string + type RootInput struct + TreeSize int + type RootOutput struct + Data Root + type RootsProvider interface + UpdateRoots func(ctx context.Context, treeSizes []string) map[int]Root + type SearchEvent struct + ConsistencyVerification EventVerification + EventEnvelope *EventEnvelope + Hash string + LeafIndex *int + MembershipProof *string + MembershipVerification EventVerification + Published *bool + RawEnvelope map[string]any + SignatureVerification EventVerification + func (ee *SearchEvent) VerifyConsistencyProof(publishedRoots map[int]Root) + func (ee *SearchEvent) VerifyMembershipProof(root *Root) + func (event *SearchEvent) IsVerifiable() bool + type SearchEvents []*SearchEvent + func (events SearchEvents) VerifiableRecords() SearchEvents + type SearchInput struct + End *time.Time + Limit int + MaxResults int + Order string + OrderBy string + Query string + SearchRestriction *SearchRestriction + Start *time.Time + Verbose *bool + type SearchOutput struct + Count int + Events SearchEvents + ExpiresAt *time.Time + ID string + Root *Root + UnpublishedRoot *Root + type SearchRestriction struct + Action []string + Actor []string + Source []string + Status []string + Target []string + type SearchResultsInput struct + ID string + Limit int + Offset *int + type SearchResultsOutput struct + Count int + Events SearchEvents + Root *Root + UnpublishedRoot *Root + type StandardEvent struct + Action string + Actor string + Message string + New string + Old string + Source string + Status string + Target string + TenantID string + Timestamp *pu.PangeaTimestamp + func (e *StandardEvent) SetTenant(tid string) + func (e *StandardEvent) Tenant() string + type Tenanter interface + SetTenant func(string) + Tenant func() string + type ValidateEvents []*ValidatedEvent + type ValidatedEvent struct + ConsistencyProofStatus *bool + Event *EventEnvelope + MembershipProofStatus *bool Other modules containing this package github.com/pangeacyber/pangea-go/pangea-sdk github.com/pangeacyber/pangea-go/pangea-sdk/v3 github.com/pangeacyber/pangea-go/pangea-sdk/v4