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 (*RawUser) WeaverUnmarshal ¶
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
}
Click to show internal directories.
Click to hide internal directories.