Documentation ¶
Index ¶
- Variables
- type Yggdrasil
- func (y *Yggdrasil) Auth(ctx context.Context, t yggdrasil.ValidateToken) (*model.TokenClaims, error)
- func (y *Yggdrasil) Authenticate(cxt context.Context, auth yggdrasil.Authenticate) (yggdrasil.Token, error)
- func (y *Yggdrasil) BatchProfile(ctx context.Context, names []string) ([]yggdrasil.UserInfo, error)
- func (y *Yggdrasil) DelTexture(ctx context.Context, t *model.TokenClaims, textureType string) error
- func (y *Yggdrasil) GetProfile(ctx context.Context, uuid string, unsigned bool, host string) (yggdrasil.UserInfo, error)
- func (y *Yggdrasil) HasJoined(ctx context.Context, username, serverId string, ip string, host string) (yggdrasil.UserInfo, error)
- func (y *Yggdrasil) Invalidate(ctx context.Context, t *model.TokenClaims) error
- func (y *Yggdrasil) PlayerCertificates(ctx context.Context, t *model.TokenClaims) (yggdrasil.Certificates, error)
- func (y *Yggdrasil) Refresh(ctx context.Context, t *model.TokenClaims) (yggdrasil.Token, error)
- func (y *Yggdrasil) SessionJoin(ctx context.Context, s yggdrasil.Session, t *model.TokenClaims, ip string) error
- func (y *Yggdrasil) SignOut(ctx context.Context, t yggdrasil.Pass) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRate = errors.New("频率限制") ErrPassWord = errors.New("错误的密码或邮箱") ErrNotUser = errors.New("没有这个用户") ErrUserDisable = errors.New("用户被禁用") )
View Source
var (
ErrUUIDNotEq = errors.New("uuid 不相同")
)
Functions ¶
This section is empty.
Types ¶
type Yggdrasil ¶
type Yggdrasil struct {
// contains filtered or unexported fields
}
func NewYggdrasil ¶
func (*Yggdrasil) Auth ¶
func (y *Yggdrasil) Auth(ctx context.Context, t yggdrasil.ValidateToken) (*model.TokenClaims, error)
func (*Yggdrasil) Authenticate ¶
func (*Yggdrasil) BatchProfile ¶
func (*Yggdrasil) DelTexture ¶
func (*Yggdrasil) GetProfile ¶
func (*Yggdrasil) Invalidate ¶
func (*Yggdrasil) PlayerCertificates ¶
func (y *Yggdrasil) PlayerCertificates(ctx context.Context, t *model.TokenClaims) (yggdrasil.Certificates, error)
func (*Yggdrasil) SessionJoin ¶
Click to show internal directories.
Click to hide internal directories.