getmoe: github.com/leonidboykov/getmoe/provider Index | Files | Directories

package provider

import "github.com/leonidboykov/getmoe/provider"

Index

Package Files

boards.go providers.go

Variables

var AvailableBoards = map[string]*getmoe.Board{
    "yande.re": getmoe.NewBoardWithProvider(moebooru.New(getmoe.ProviderConfiguration{
        URL: getmoe.URLString{URL: url.URL{Host: "yande.re"}},
    })),
    "konachan.com": getmoe.NewBoardWithProvider(moebooru.New(getmoe.ProviderConfiguration{
        URL:          getmoe.URLString{URL: url.URL{Host: "konachan.com"}},
        PasswordSalt: "So-I-Heard-You-Like-Mupkids-?--%s--",
    })),
    "gelbooru.com": getmoe.NewBoardWithProvider(gelbooru.New(getmoe.ProviderConfiguration{
        URL: getmoe.URLString{URL: url.URL{Host: "gelbooru.com"}},
    })),
    "danbooru.donmai.us": getmoe.NewBoardWithProvider(danbooru.New(getmoe.ProviderConfiguration{
        URL: getmoe.URLString{URL: url.URL{Host: "danbooru.donmai.us"}},
    })),
    "chan.sankakucomplex.com": getmoe.NewBoardWithProvider(sankaku.New(getmoe.ProviderConfiguration{
        URL: getmoe.URLString{URL: url.URL{Host: "capi-v2.sankakucomplex.com"}},
    })),
    "idol.sankakucomplex.com": getmoe.NewBoardWithProvider(sankaku.New(getmoe.ProviderConfiguration{
        URL: getmoe.URLString{URL: url.URL{
            Host: "iapi.sankakucomplex.com",
            Path: "post/index.json",
        }},
    })),
}

AvailableBoards is a list of predefined boards.

var Providers = map[string]factory{
    "danbooru": newDanbooru,
    "gelbooru": newGelbooru,
    "moebooru": newMoebooru,
    "sankaku":  newSankaku,
}

Providers is a list of avalilable providers

Directories

PathSynopsis
danbooruPackage danbooru implements a simple library for accessing Danbooru-based image boards.
gelbooruPackage gelbooru implements a simple library for accessing Gelbooru-based image boards.
moebooruPackage moebooru implements a simple library for accessing Moebooru-based image boards.
sankakuPackage sankaku implements a simple library for accessing Sankakucomplex-based image boards.

Package provider imports 6 packages (graph). Updated 2019-03-11. Refresh now. Tools for package owners.