Home Download Docs Code Community
     1	/*
     2	Copyright 2014 The Perkeep Authors
     3	
     4	Licensed under the Apache License, Version 2.0 (the "License");
     5	you may not use this file except in compliance with the License.
     6	You may obtain a copy of the License at
     7	
     8	     http://www.apache.org/licenses/LICENSE-2.0
     9	
    10	Unless required by applicable law or agreed to in writing, software
    11	distributed under the License is distributed on an "AS IS" BASIS,
    12	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13	See the License for the specific language governing permissions and
    14	limitations under the License.
    15	*/
    16	
    17	package importer
    18	
    19	// TODO(mpl): use these on all the importers.
    20	const (
    21		// Account or user identity.
    22	
    23		// AcctAttrUserID is the account's internal representation, and often an account number.
    24		// It is usually required as an argument in API calls to the site we import from.
    25		// Not found on schema.org.
    26		// Example: "3179713".
    27		AcctAttrUserID = "userID"
    28		// AcctAttrUserName is the public identifier of the account. Commonly referred to as
    29		// "username", or "screen name", or "account name". Often a one word string.
    30		// Not found on schema.org.
    31		// Example: "johnSmith" from Twitter's "@johnSmith".
    32		AcctAttrUserName = "userName"
    33	
    34		// AcctAttrCompletedVersion records the importer-specific
    35		// "version number" that last ran to completion, doing a full
    36		// importer. When importers are updated with new behavior,
    37		// they update their version number and that triggers a full
    38		// import, rather than incremental imports.
    39		AcctAttrCompletedVersion = "completedVersion"
    40	
    41		// AcctAttrName is a longer or alternate public representation of the account's name.
    42		// It is often the full name of the person's account (family name and given name), thus
    43		// sometimes redundant with the combination of acctAttrFamilyName and acctAttrGivenName.
    44		// Found at http://schema.org/Person.
    45		// Example: "John Smith".
    46		AcctAttrName = "name"
    47		// http://schema.org/givenName
    48		// Example: "John".
    49		AcctAttrGivenName = "givenName"
    50		// http://schema.org/familyName
    51		// Example: "Smith".
    52		AcctAttrFamilyName = "familyName"
    53	
    54		// Generic item, object.
    55	
    56		// ItemAttrID is the generic identifier of an item when nothing suitable and more specific
    57		// was found on http://schema.org. Usually a number.
    58		AttrID = "ID"
    59		// http://schema.org/name
    60		AttrName = "name"
    61		// Free-flowing text definition of a location or place, such
    62		// as a city name, or a full postal address.
    63		AttrLocationText = "locationText"
    64		// AttrURL is the item's original or origin URL.
    65		AttrURL = "url"
    66	
    67		// AttrStartDate is http://schema.org/startDate: The start
    68		// date and time of the event or item (in ISO 8601 date
    69		// format)
    70		AttrStartDate = "startDate"
    71	
    72		// Image, photo.
    73	
    74	)
Website layout inspired by memcached.
Content by the authors.