github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/uri/media-types.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package uri
     4  
     5  import (
     6  	"github.com/GeniusesGroup/libgo/detail"
     7  	"github.com/GeniusesGroup/libgo/mediatype"
     8  	"github.com/GeniusesGroup/libgo/protocol"
     9  )
    10  
    11  var (
    12  	MediaType mediaType
    13  )
    14  
    15  func init() {
    16  	MediaType.Init("application/uri")
    17  	MediaType.SetDetail(protocol.LanguageEnglish, "URI", "", "", "", "", []string{})
    18  }
    19  
    20  type mediaType struct {
    21  	detail.DS
    22  	mediatype.MT
    23  }
    24  
    25  //libgo:impl protocol.MediaType
    26  func (m *mediaType) FileExtension() string           { return "uri" }
    27  func (m *mediaType) Status() protocol.SoftwareStatus { return protocol.Software_PreAlpha }
    28  func (m *mediaType) ReferenceURI() string {
    29  	return "https://www.iana.org/assignments/media-types/application/http"
    30  }
    31  func (m *mediaType) IssueDate() protocol.Time            { return nil }
    32  func (m *mediaType) ExpiryDate() protocol.Time           { return nil }
    33  func (m *mediaType) ExpireInFavorOf() protocol.MediaType { return nil }
    34  func (m *mediaType) Fields() []protocol.Field            { return nil }