mediamanager

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 11 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",
}
View Source
var DownloadType_value = map[string]int32{
	"Thumbnail": 0,
	"DeepZoom":  1,
	"Source":    2,
	"RDF":       3,
	"JSON":      4,
}

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) EnumDescriptor

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

func (DownloadType) String

func (x DownloadType) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*WebResource) Descriptor

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

func (*WebResource) GetAlternatives

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

func (*WebResource) GetDerivatives

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

func (*WebResource) GetHubID

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

func (*WebResource) GetLastModified

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

func (*WebResource) GetObjectNumber

func (m *WebResource) GetObjectNumber() string

func (*WebResource) GetOrgID

func (m *WebResource) GetOrgID() string

func (*WebResource) GetSourceExtension

func (m *WebResource) GetSourceExtension() string

func (*WebResource) GetSourceMimeType

func (m *WebResource) GetSourceMimeType() string

func (*WebResource) GetSourcePath

func (m *WebResource) GetSourcePath() string

func (*WebResource) GetSourceSize

func (m *WebResource) GetSourceSize() int64

func (*WebResource) GetSpec

func (m *WebResource) GetSpec() string

func (*WebResource) ProtoMessage

func (*WebResource) ProtoMessage()

func (*WebResource) Reset

func (m *WebResource) Reset()

func (*WebResource) String

func (m *WebResource) String() string

func (*WebResource) XXX_DiscardUnknown

func (m *WebResource) XXX_DiscardUnknown()

func (*WebResource) XXX_Marshal

func (m *WebResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebResource) XXX_Merge

func (m *WebResource) XXX_Merge(src proto.Message)

func (*WebResource) XXX_Size

func (m *WebResource) XXX_Size() int

func (*WebResource) XXX_Unmarshal

func (m *WebResource) XXX_Unmarshal(b []byte) error

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"`
	Urn                  string   `protobuf:"bytes,8,opt,name=urn,proto3" json:"urn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WebResourceRequest) Descriptor

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

func (*WebResourceRequest) GetDimension

func (m *WebResourceRequest) GetDimension() string

func (*WebResourceRequest) GetDownloadType

func (m *WebResourceRequest) GetDownloadType() string

func (*WebResourceRequest) GetHubID

func (m *WebResourceRequest) GetHubID() string

func (*WebResourceRequest) GetMimeType

func (m *WebResourceRequest) GetMimeType() string

func (*WebResourceRequest) GetOrgID

func (m *WebResourceRequest) GetOrgID() string

func (*WebResourceRequest) GetSourcePath

func (m *WebResourceRequest) GetSourcePath() string

func (*WebResourceRequest) GetSpec

func (m *WebResourceRequest) GetSpec() string

func (*WebResourceRequest) GetUrn

func (m *WebResourceRequest) GetUrn() string

func (*WebResourceRequest) ProtoMessage

func (*WebResourceRequest) ProtoMessage()

func (*WebResourceRequest) Reset

func (m *WebResourceRequest) Reset()

func (*WebResourceRequest) String

func (m *WebResourceRequest) String() string

func (*WebResourceRequest) XXX_DiscardUnknown

func (m *WebResourceRequest) XXX_DiscardUnknown()

func (*WebResourceRequest) XXX_Marshal

func (m *WebResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebResourceRequest) XXX_Merge

func (m *WebResourceRequest) XXX_Merge(src proto.Message)

func (*WebResourceRequest) XXX_Size

func (m *WebResourceRequest) XXX_Size() int

func (*WebResourceRequest) XXX_Unmarshal

func (m *WebResourceRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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