public_docs

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package public_docs implements the anonymous, auth-exempt read surface backing PublicDocsAPI (see internal/api/server/artel_api/public_docs_grpc.pb.go's doc comment and docs/architecture.md). Every method here resolves its target vault by slug and only ever returns data for a published vault (domain.Vault.IsPublic) — it must never call user_context.GetUserContext, and must never depend on repository.VaultMembers or service.SubscriptionService, since callers here are never authenticated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(repo repository.Repo) *Service

func (*Service) GetNote

func (s *Service) GetNote(ctx context.Context, slug, path string) (couchdb.NoteDoc, error)

func (*Service) GetVaultBySlug

func (s *Service) GetVaultBySlug(ctx context.Context, slug string) (domain.Vault, error)

func (*Service) ListFolders

func (s *Service) ListFolders(ctx context.Context, slug string) ([]string, error)

func (*Service) ListNotes

func (s *Service) ListNotes(ctx context.Context, slug string) ([]couchdb.NoteEntry, error)

func (*Service) ListTags

func (s *Service) ListTags(ctx context.Context, slug string) ([]string, error)

Jump to

Keyboard shortcuts

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