Documentation ¶
Index ¶
- Variables
- type CacheConfig
- type Comment
- type Config
- type ExecuteTemplateFunc
- type GitHubConfig
- type Home
- type Language
- type LogConfig
- type Post
- type Project
- type Reply
- type Repositories
- type Server
- func (s *Server) Close()
- func (s *Server) FetchData(ctx context.Context) (*Variables, error)
- func (s *Server) FetchRepositories(ctx context.Context, after string) (*Variables, error)
- func (s *Server) HighlightData(vars *Variables) error
- func (s *Server) Routes() http.Handler
- func (s *Server) Start()
- type Topic
- type User
- type Variables
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StyleDark = styles.Get("github-dark") StyleLight = styles.Get("github") )
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
func (CacheConfig) String ¶
func (c CacheConfig) String() string
type Config ¶
type Config struct { Log LogConfig `yaml:"log"` Debug bool `yaml:"debug"` DevMode bool `yaml:"dev_mode"` ListenAddr string `yaml:"listen_addr"` GitHub GitHubConfig `yaml:"github"` Cache *CacheConfig `yaml:"cache"` }
func LoadConfig ¶
type GitHubConfig ¶
func (GitHubConfig) String ¶
func (c GitHubConfig) String() string
type LogConfig ¶
type Repositories ¶
type Repositories struct { Nodes []struct { Name string URL string Description string StargazerCount int ForkCount int PushedAt time.Time RepositoryTopics struct { Nodes []struct { Topic struct { Name string } URL string } } `graphql:"repositoryTopics(first: $topics)"` Languages struct { Nodes []struct { Name string Color string } } `graphql:"languages(first: 1, orderBy: {field: SIZE, direction: DESC})"` } PageInfo struct { EndCursor string HasNextPage bool } }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) FetchRepositories ¶
func (*Server) HighlightData ¶
Click to show internal directories.
Click to hide internal directories.