cafeapi

package
v0.3.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "cafeapi"

Variables

This section is empty.

Functions

This section is empty.

Types

type CafeApi

type CafeApi interface {
	CheckCafeUserStatus(ctx context.Context, oldIdentity string) (userType UserType, err error)
	app.Component
}

func New added in v0.2.7

func New() CafeApi

type Config

type Config struct {
	Url string `yaml:"url"`
}

type UserInfo

type UserInfo struct {
	ID                string `json:"id"`
	CreatedAt         int64  `json:"created_at"`
	PrereleaseEnabled bool   `json:"prerelease_enabled"`
}

type UserType

type UserType uint
const (
	UserTypeNew UserType = iota
	UserTypeOld
	UserTypeNightly
)

Directories

Path Synopsis
Package mock_cafeapi is a generated GoMock package.
Package mock_cafeapi is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL