document

package
v0.0.0-...-7bde5dc Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document interface {
	SearchDocument(ctx context.Context, vaultID string, filter gotruevault.SearchOption) (SearchDocumentResult, error)
}

Document ...

func New

func New(client gotruevault.Client) Document

New creates a new document service

type SearchDocument

type SearchDocument struct {
	Document   string    `json:"document,omitempty"`
	DocumentID uuid.UUID `json:"document_id,omitempty"`
	OwnerID    uuid.UUID `json:"owner_id,omitempty"`
}

SearchDocument ...

func (*SearchDocument) DecodeDocument

func (r *SearchDocument) DecodeDocument(v interface{}) error

DecodeDocument ...

type SearchDocumentResult

type SearchDocumentResult struct {
	Info          SearchDocumentResultInfo `json:"info,omitempty"`
	Documents     SearchDocuments          `json:"documents,omitempty"`
	Result        string                   `json:"result,omitempty"`
	TransactionID uuid.UUID                `json:"transaction_id,omitempty"`
}

SearchDocumentResult ...

type SearchDocumentResultInfo

type SearchDocumentResultInfo struct {
	PerPage          int `json:"per_page,omitempty"`
	CurrentPage      int `json:"current_page,omitempty"`
	NumPage          int `json:"num_page,omitempty"`
	TotalResultCount int `json:"total_result_count,omitempty"`
}

SearchDocumentResultInfo ...

type SearchDocuments

type SearchDocuments []SearchDocument

SearchDocuments ...

type TrueVaultDocument

type TrueVaultDocument struct {
	*gotruevault.Client
}

TrueVaultDocument implements the Document interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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