tohru

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Hello = "B3vUNO|I,|\"FAco9b<fIPj0K:r,Zsj\"?KFOA}.z1N&LZOP1GYq"
View Source
const (
	TokenKey = "X-enputi-Token"
)

Variables

View Source
var (
	ErrTohruNotfound = errors.New("tohru notfound")
	ErrWrongPassword = errors.New("wrong password")
)
View Source
var Tohru = newTohru()

Functions

This section is empty.

Types

type ChangePasswordReq

type ChangePasswordReq struct {
	// 当前Tohru的版本
	TohruKey         string `yaml:"tohru_key" json:"tohru_key" validate:"required"`
	OldTohruPassword string `yaml:"old_tohru_password" json:"old_tohru_password" validate:"required"`
	NewTohruPassword string `yaml:"new_tohru_password" json:"new_tohru_password" validate:"required"`
}

type ChangePasswordRsp

type ChangePasswordRsp struct {
}

type CheckUsableReq

type CheckUsableReq struct {
	// 当前Tohru的版本
	Version string `yaml:"version" json:"version" validate:"required"`
	Hello   string `yaml:"hello" json:"hello" validate:"required"`
}

type CheckUsableRsp

type CheckUsableRsp struct {
	// 当前Kobayashi-san的版本
	Version string `yaml:"version" json:"version" validate:"required"`
	Token   string `yaml:"token" json:"token" validate:"required"`
}

type RegistrationReq

type RegistrationReq struct {
	TohruKey      string `yaml:"tohru_key" json:"tohru_key" validate:"required"`
	TohruPassword string `yaml:"tohru_password" json:"tohru_password" validate:"required"`
}

type RegistrationRsp

type RegistrationRsp struct {
}

type SyncNodeReq

type SyncNodeReq struct {
	NodeList string `yaml:"node_list" json:"node_list" validate:"required"`
}

type SyncNodeRsp

type SyncNodeRsp struct {
	NodeList string `yaml:"node_list" json:"node_list"`
}

type UserInfo

type UserInfo struct {
	Hello         string `yaml:"hello" json:"hello" validate:"required"`
	TohruKey      string `yaml:"tohru_key" json:"tohru_key" validate:"required"`
	TohruPassword string `yaml:"tohru_password" json:"tohru_password" validate:"required"`
}

Jump to

Keyboard shortcuts

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