mediamanager

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DownloadType_name = map[int32]string{
		0: "Thumbnail",
		1: "DeepZoom",
		2: "Source",
		3: "RDF",
		4: "JSON",
	}
	DownloadType_value = map[string]int32{
		"Thumbnail": 0,
		"DeepZoom":  1,
		"Source":    2,
		"RDF":       3,
		"JSON":      4,
	}
)

Enum value maps for DownloadType.

View Source
var File_hub3_mediamanager_webresource_proto protoreflect.FileDescriptor

Functions

func IndexWebResources

func IndexWebResources(p *elastic.BulkProcessor) error

IndexWebResources reindexes all webresources

Types

type DownloadType

type DownloadType int32
const (
	DownloadType_Thumbnail DownloadType = 0
	DownloadType_DeepZoom  DownloadType = 1
	DownloadType_Source    DownloadType = 2
	DownloadType_RDF       DownloadType = 3
	DownloadType_JSON      DownloadType = 4
)

func (DownloadType) Descriptor added in v0.1.8

func (DownloadType) Enum added in v0.1.8

func (x DownloadType) Enum() *DownloadType

func (DownloadType) EnumDescriptor deprecated

func (DownloadType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DownloadType.Descriptor instead.

func (DownloadType) Number added in v0.1.8

func (DownloadType) String

func (x DownloadType) String() string

func (DownloadType) Type added in v0.1.8

type WebResource

type WebResource struct {
	OrgID           string               `protobuf:"bytes,1,opt,name=orgID,proto3" json:"orgID,omitempty"`
	Spec            string               `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
	HubID           []string             `protobuf:"bytes,3,rep,name=hubID,proto3" json:"hubID,omitempty"`
	Derivatives     map[string]string    `` /* 163-byte string literal not displayed */
	ObjectNumber    string               `protobuf:"bytes,5,opt,name=objectNumber,proto3" json:"objectNumber,omitempty"`
	Alternatives    []string             `protobuf:"bytes,6,rep,name=alternatives,proto3" json:"alternatives,omitempty"`
	SourcePath      string               `protobuf:"bytes,7,opt,name=sourcePath,proto3" json:"sourcePath,omitempty"`
	SourceExtension string               `protobuf:"bytes,8,opt,name=sourceExtension,proto3" json:"sourceExtension,omitempty"`
	SourceMimeType  string               `protobuf:"bytes,9,opt,name=sourceMimeType,proto3" json:"sourceMimeType,omitempty"`
	LastModified    *timestamp.Timestamp `protobuf:"bytes,10,opt,name=lastModified,proto3" json:"lastModified,omitempty"`
	SourceSize      int64                `protobuf:"varint,11,opt,name=sourceSize,proto3" json:"sourceSize,omitempty"`
	// contains filtered or unexported fields
}

func (*WebResource) Descriptor deprecated

func (*WebResource) Descriptor() ([]byte, []int)

Deprecated: Use WebResource.ProtoReflect.Descriptor instead.

func (*WebResource) GetAlternatives

func (x *WebResource) GetAlternatives() []string

func (*WebResource) GetDerivatives

func (x *WebResource) GetDerivatives() map[string]string

func (*WebResource) GetHubID

func (x *WebResource) GetHubID() []string

func (*WebResource) GetLastModified

func (x *WebResource) GetLastModified() *timestamp.Timestamp

func (*WebResource) GetObjectNumber

func (x *WebResource) GetObjectNumber() string

func (*WebResource) GetOrgID

func (x *WebResource) GetOrgID() string

func (*WebResource) GetSourceExtension

func (x *WebResource) GetSourceExtension() string

func (*WebResource) GetSourceMimeType

func (x *WebResource) GetSourceMimeType() string

func (*WebResource) GetSourcePath

func (x *WebResource) GetSourcePath() string

func (*WebResource) GetSourceSize

func (x *WebResource) GetSourceSize() int64

func (*WebResource) GetSpec

func (x *WebResource) GetSpec() string

func (*WebResource) ProtoMessage

func (*WebResource) ProtoMessage()

func (*WebResource) ProtoReflect added in v0.1.8

func (x *WebResource) ProtoReflect() protoreflect.Message

func (*WebResource) Reset

func (x *WebResource) Reset()

func (*WebResource) String

func (x *WebResource) String() string

type WebResourceRequest

type WebResourceRequest struct {
	OrgID        string `protobuf:"bytes,1,opt,name=orgID,proto3" json:"orgID,omitempty"`
	Spec         string `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
	HubID        string `protobuf:"bytes,3,opt,name=hubID,proto3" json:"hubID,omitempty"`
	MimeType     string `protobuf:"bytes,4,opt,name=mimeType,proto3" json:"mimeType,omitempty"`
	SourcePath   string `protobuf:"bytes,5,opt,name=sourcePath,proto3" json:"sourcePath,omitempty"`
	DownloadType string `protobuf:"bytes,6,opt,name=DownloadType,proto3" json:"DownloadType,omitempty"`
	Dimension    string `protobuf:"bytes,7,opt,name=dimension,proto3" json:"dimension,omitempty"` // 200 200x200 x100 in the case of DownloadType Thumbnail
	Urn          string `protobuf:"bytes,8,opt,name=urn,proto3" json:"urn,omitempty"`
	// contains filtered or unexported fields
}

func (*WebResourceRequest) Descriptor deprecated

func (*WebResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use WebResourceRequest.ProtoReflect.Descriptor instead.

func (*WebResourceRequest) GetDimension

func (x *WebResourceRequest) GetDimension() string

func (*WebResourceRequest) GetDownloadType

func (x *WebResourceRequest) GetDownloadType() string

func (*WebResourceRequest) GetHubID

func (x *WebResourceRequest) GetHubID() string

func (*WebResourceRequest) GetMimeType

func (x *WebResourceRequest) GetMimeType() string

func (*WebResourceRequest) GetOrgID

func (x *WebResourceRequest) GetOrgID() string

func (*WebResourceRequest) GetSourcePath

func (x *WebResourceRequest) GetSourcePath() string

func (*WebResourceRequest) GetSpec

func (x *WebResourceRequest) GetSpec() string

func (*WebResourceRequest) GetUrn

func (x *WebResourceRequest) GetUrn() string

func (*WebResourceRequest) ProtoMessage

func (*WebResourceRequest) ProtoMessage()

func (*WebResourceRequest) ProtoReflect added in v0.1.8

func (x *WebResourceRequest) ProtoReflect() protoreflect.Message

func (*WebResourceRequest) Reset

func (x *WebResourceRequest) Reset()

func (*WebResourceRequest) String

func (x *WebResourceRequest) String() string

Jump to

Keyboard shortcuts

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