loginimpl

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawUser

type RawUser struct {
	weaver.AutoMarshal
	Id          uint64
	Login       string
	RegistredAt int64
}

func (*RawUser) WeaverMarshal

func (x *RawUser) WeaverMarshal(enc *codegen.Encoder)

func (*RawUser) WeaverUnmarshal

func (x *RawUser) WeaverUnmarshal(dec *codegen.Decoder)

type RemoteLoginService

type RemoteLoginService interface {
	GetUsers(ctx context.Context, userIds []uint64) (map[uint64]RawUser, error)
	ListUsers(ctx context.Context, start uint64, end uint64, filter string) (uint64, []RawUser, error)
	Delete(ctx context.Context, userId uint64) error
	Verify(ctx context.Context, login string, salted string) (uint64, error)
	Register(ctx context.Context, login string, salted string) (uint64, error)
	ChangeLogin(ctx context.Context, userId uint64, newLogin string, oldSalted string, newSalted string) error
	ChangePassword(ctx context.Context, userId uint64, oldSalted string, newSalted string) error
}

Jump to

Keyboard shortcuts

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