aboutsummaryrefslogtreecommitdiff
path: root/internal/yaml/yaml_test.go (unfollow)
Commit message (Expand)AuthorFilesLines
2022-01-10Specify cookies in feed config to use in all HTTP requests.René 'Necoro' Neumann4-10/+45
2022-01-10Support sending cookies in a http request.René 'Necoro' Neumann2-0/+12
2022-01-10Replace homegrown map-to-structure code by using package mapstructure.René 'Necoro' Neumann4-41/+28
2022-01-09#66: DocumentationRené 'Necoro' Neumann3-0/+6
2022-01-09#66: Support for specifying custom templatesRené 'Necoro' Neumann3-6/+62
2022-01-09Fix commentRené 'Necoro' Neumann1-1/+1
2022-01-09template: Restructuring and adding tests.René 'Necoro' Neumann4-73/+159
2022-01-08Mention fix of 180aa45d40 in Changelog.René 'Necoro' Neumann1-0/+2
2022-01-08Update READMERené 'Necoro' Neumann1-3/+6
2022-01-08#67: Update documentationRené 'Necoro' Neumann3-1/+7
2022-01-08#67: Readability supportRené 'Necoro' Neumann4-10/+58
2022-01-08Add test for fix of 180aa45d40René 'Necoro' Neumann1-0/+1
2022-01-08Introduce http.Context to bundle http specific parametersRené 'Necoro' Neumann4-11/+24
2022-01-08Fix configuration parsing, when the target field is not of a primitive type.René 'Necoro' Neumann1-3/+7
2021-12-21Prepare v1.4.0v1.4.0René 'Necoro' Neumann2-3/+5
2021-12-21Prefer the self-link of the feed over the URL.René 'Necoro' Neumann1-10/+16
2021-12-21Resolve relative links, so that external clients can use absolute links.René 'Necoro' Neumann2-29/+62
2021-11-22Increase go-conformity: map[T]struct{} instead of map[T]bool for setsRené 'Necoro' Neumann4-7/+7
2021-11-01Prepare v1.3.0v1.3.0René 'Necoro' Neumann2-2/+5
2021-11-01Squashed commit of the following:René 'Necoro' Neumann2-10/+9
2021-10-29Update README with new `go install`René 'Necoro' Neumann1-4/+2
2021-10-29Renamed forked dependencies, because 'replace' in go.mod leads to problems.René 'Necoro' Neumann7-17/+12
2021-10-29#64: Set filename for included imagesRené 'Necoro' Neumann3-5/+22
2021-10-23Upgrade replacement dependenciesRené 'Necoro' Neumann2-17/+6
2021-10-23Upgrade to Go 1.17René 'Necoro' Neumann3-5/+19
2021-10-20Fix release processv1.2.0René 'Necoro' Neumann2-3/+2
2021-10-20Prepare v1.2.0René 'Necoro' Neumann3-3/+6
2021-10-18Improve Url.String()René 'Necoro' Neumann2-16/+40
2021-10-18Improve commentRené 'Necoro' Neumann1-2/+2
2021-10-18Update documentationRené 'Necoro' Neumann3-1/+7
2021-10-18Explicit test for maildirRené 'Necoro' Neumann1-1/+7
2021-10-18RestructuringRené 'Necoro' Neumann1-24/+33
2021-10-18Support feed targets per feedRené 'Necoro' Neumann5-19/+183
2021-10-18URL: Do not print '@' when no user is givenRené 'Necoro' Neumann1-1/+7
2021-10-17#62: Fix tests (empty root is now allowed)René 'Necoro' Neumann1-2/+16
2021-10-17#62: ChangelogRené 'Necoro' Neumann1-0/+2
2021-10-17#62: Ensure that, with empty roots, there still remains a storage locationRené 'Necoro' Neumann2-0/+12
2021-10-17Toplevel feed may have an empty target: Store directly in root.René 'Necoro' Neumann1-0/+4
2021-10-17Improve documentation in configurationRené 'Necoro' Neumann1-3/+3
2021-10-17#62: Root can be emptyRené 'Necoro' Neumann3-6/+13
2021-10-17Allow to specify path to the cache directly in the config fileRené 'Necoro' Neumann4-9/+23
2021-10-15Bump github.com/gabriel-vasile/mimetype from 1.3.1 to 1.4.0dependabot[bot]2-3/+3
2021-10-06Update go-imap to 1.2.0René 'Necoro' Neumann2-7/+5
2021-08-13Bump github.com/antonmedv/expr from 1.8.9 to 1.9.0dependabot[bot]2-3/+3
2021-07-24Update html2text dependencyRené 'Necoro' Neumann2-9/+7
2021-07-24Prepare v1.1.1v1.1.1René 'Necoro' Neumann3-3/+7
2021-07-24Fix IMAP disconnectRené 'Necoro' Neumann1-1/+4
2021-07-17Bump github.com/google/uuid from 1.2.0 to 1.3.0dependabot[bot]2-3/+3
2021-07-17Bump github.com/PuerkitoBio/goquery from 1.7.0 to 1.7.1dependabot[bot]2-6/+8
2021-07-02Bump github.com/gabriel-vasile/mimetype from 1.3.0 to 1.3.1dependabot[bot]2-3/+3
r generic object output into ui-view.cLars Hjemli4-34/+43 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move log-functions into ui-log.cLars Hjemli5-111/+121 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move repo summary functions into ui-summary.cLars Hjemli4-47/+59 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move functions for repolist output into ui-repolist.cLars Hjemli5-70/+90 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move common output-functions into ui-shared.cLars Hjemli4-82/+99 While at it, replace the cgit_[lib_]error constants with a proper function Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.cLars Hjemli4-28/+29 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Avoid infinite loops in caching layerLars Hjemli3-14/+31 Add a global variable, cgit_max_lock_attemps, to avoid the possibility of infinite loops when failing to acquire a lockfile. This could happen on broken setups or under crazy server load. Incidentally, this also fixes a lurking bug in cache_lock() where an uninitialized returnvalue was used. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Let 'make install' clear all cachefilesLars Hjemli1-0/+2 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Fix cache algorithm loopholeLars Hjemli3-11/+16 This closes the door for unneccessary calls to cgit_fill_cache(). Noticed by Linus. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add version identifier in generated filesLars Hjemli2-9/+14 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add license file and copyright noticesLars Hjemli5-0/+372 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add caching infrastructureLars Hjemli9-28/+353 This enables internal caching of page output. Page requests are split into four groups: 1) repo listing (front page) 2) repo summary 3) repo pages w/symbolic references in query string 4) repo pages w/constant sha1's in query string Each group has a TTL specified in minutes. When a page is requested, a cached filename is stat(2)'ed and st_mtime is compared to time(2). If TTL has expired (or the file didn't exist), the cached file is regenerated. When generating a cached file, locking is used to avoid parallell processing of the request. If multiple processes tries to aquire the same lock, the ones who fail to get the lock serves the (expired) cached file. If the cached file don't exist, the process instead calls sched_yield(2) before restarting the request processing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>