Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AckNewEventsCountRequest

type AckNewEventsCountRequest struct {
	IdentityID string `json:"identity_id"`
	// contains filtered or unexported fields
}

func (*AckNewEventsCountRequest) BindAndValidate

func (req *AckNewEventsCountRequest) BindAndValidate(eCtx echo.Context) error

type BoxApplication

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

func NewBoxApplication

func NewBoxApplication(db *sql.DB, redConn *redis.Client, identities entrypoints.IdentityIntraprocessInterface, filesRepo files.FileStorageRepo) BoxApplication

func (*BoxApplication) AckNewEventsCount

func (bs *BoxApplication) AckNewEventsCount(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) CountBoxes

func (bs *BoxApplication) CountBoxes(ctx context.Context, _ entrypoints.Request) (interface{}, error)

func (*BoxApplication) CreateBox

func (bs *BoxApplication) CreateBox(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) CreateEvent

func (bs *BoxApplication) CreateEvent(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) CreateKeyShare

func (bs *BoxApplication) CreateKeyShare(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) CreateSavedFile

func (bs *BoxApplication) CreateSavedFile(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) DeleteBox

func (bs *BoxApplication) DeleteBox(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) DeleteSavedFile

func (bs *BoxApplication) DeleteSavedFile(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) DownloadEncryptedFile

func (bs *BoxApplication) DownloadEncryptedFile(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) GetKeyShare

func (bs *BoxApplication) GetKeyShare(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) ListBoxes

func (bs *BoxApplication) ListBoxes(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) ListEvents

func (bs *BoxApplication) ListEvents(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) ListSavedFiles

func (bs *BoxApplication) ListSavedFiles(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) ReadBox

func (bs *BoxApplication) ReadBox(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) ReadBoxPublic

func (bs *BoxApplication) ReadBoxPublic(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

func (*BoxApplication) UploadEncryptedFile

func (bs *BoxApplication) UploadEncryptedFile(ctx context.Context, genReq entrypoints.Request) (interface{}, error)

type CountBoxesRequest

type CountBoxesRequest struct {
}

func (*CountBoxesRequest) BindAndValidate

func (req *CountBoxesRequest) BindAndValidate(_ echo.Context) error

type CreateBoxRequest

type CreateBoxRequest struct {
	PublicKey string `json:"public_key"`
	Title     string `json:"title"`
}

func (*CreateBoxRequest) BindAndValidate

func (req *CreateBoxRequest) BindAndValidate(eCtx echo.Context) error

type CreateEventRequest

type CreateEventRequest struct {
	Type    string     `json:"type"`
	Content types.JSON `json:"content"`
	// contains filtered or unexported fields
}

func (*CreateEventRequest) BindAndValidate

func (req *CreateEventRequest) BindAndValidate(eCtx echo.Context) error

type CreateKeyShareRequest

type CreateKeyShareRequest struct {
	keyshares.BoxKeyShare
}

func (*CreateKeyShareRequest) BindAndValidate

func (req *CreateKeyShareRequest) BindAndValidate(eCtx echo.Context) error

type CreateSavedFileRequest

type CreateSavedFileRequest struct {
	EncryptedFileID   string `json:"encrypted_file_id"`
	IdentityID        string `json:"identity_id"`
	EncryptedMetadata string `json:"encrypted_metadata"`
	KeyFingerprint    string `json:"key_fingerprint"`
}

func (*CreateSavedFileRequest) BindAndValidate

func (req *CreateSavedFileRequest) BindAndValidate(eCtx echo.Context) error

type DeleteBoxRequest

type DeleteBoxRequest struct {
	UserConfirmation string `json:"user_confirmation"`
	// contains filtered or unexported fields
}

func (*DeleteBoxRequest) BindAndValidate

func (req *DeleteBoxRequest) BindAndValidate(eCtx echo.Context) error

type DeleteSavedFileRequest

type DeleteSavedFileRequest struct {
	ID string
}

func (*DeleteSavedFileRequest) BindAndValidate

func (req *DeleteSavedFileRequest) BindAndValidate(eCtx echo.Context) error

type DownloadEncryptedFileRequest

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

func (*DownloadEncryptedFileRequest) BindAndValidate

func (req *DownloadEncryptedFileRequest) BindAndValidate(eCtx echo.Context) error

type GetKeyShareRequest

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

func (*GetKeyShareRequest) BindAndValidate

func (req *GetKeyShareRequest) BindAndValidate(eCtx echo.Context) error

type ListBoxesRequest

type ListBoxesRequest struct {
	Offset int `query:"offset" json:"-"`
	Limit  int `query:"limit" json:"-"`
}

func (*ListBoxesRequest) BindAndValidate

func (req *ListBoxesRequest) BindAndValidate(eCtx echo.Context) error

type ListEventsRequest

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

func (*ListEventsRequest) BindAndValidate

func (req *ListEventsRequest) BindAndValidate(eCtx echo.Context) error

type ListSavedFilesRequest

type ListSavedFilesRequest struct {
	IdentityID string `query:"identity_id" json:"-"`
}

func (*ListSavedFilesRequest) BindAndValidate

func (req *ListSavedFilesRequest) BindAndValidate(eCtx echo.Context) error

type PublicBoxView

type PublicBoxView struct {
	Title string `json:"title"`
}

type ReadBoxPublicRequest

type ReadBoxPublicRequest struct {
	OtherShareHash string `query:"other_share_hash"`
	// contains filtered or unexported fields
}

func (*ReadBoxPublicRequest) BindAndValidate

func (req *ReadBoxPublicRequest) BindAndValidate(eCtx echo.Context) error

type ReadBoxRequest

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

func (*ReadBoxRequest) BindAndValidate

func (req *ReadBoxRequest) BindAndValidate(eCtx echo.Context) error

type UploadEncryptedFileRequest

type UploadEncryptedFileRequest struct {
	MsgEncContent string `form:"msg_encrypted_content"`
	MsgPubKey     string `form:"msg_public_key"`
	// contains filtered or unexported fields
}

func (*UploadEncryptedFileRequest) BindAndValidate

func (req *UploadEncryptedFileRequest) BindAndValidate(eCtx echo.Context) error