Documentation ¶
Index ¶
- func CreateLoginReply() *protos.LoginReply
- func CreateLoginRequest() *protos.Login
- func DeleteUser(user, f string) error
- func EncryptPassword(p []byte, sf string) ([]byte, error)
- func IsAdminUser(name string, users map[string]User) (bool, error)
- func IsLoggedIn(name string, session Session) bool
- func IsRegisteredUser(u, f string) (bool, error)
- func IsRegularUser(name string, users map[string]User) (bool, error)
- func IsValidNewUsername(name, f string) (bool, error)
- func IsValidUserPass(u string, p []byte, f, sf string) (bool, error)
- func RegisterUser(name string, pw []byte, f, sf string) error
- func SendLoginReply(r *protos.LoginReply, s *transport.ServerSocket) error
- func SendLoginRequest(r *protos.Login, s *transport.ClientSocket) error
- func ServiceLoginReply(s *transport.ClientSocket) (bool, error)
- func ServiceLoginRequests(s *transport.ServerSocket, f, sf string) error
- func SetupClientSocket(address string) *transport.ClientSocket
- func SetupServerSocket(address string) *transport.ServerSocket
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLoginReply ¶
func CreateLoginReply() *protos.LoginReply
func CreateLoginRequest ¶
func DeleteUser ¶
func IsLoggedIn ¶
func IsRegisteredUser ¶
func IsValidNewUsername ¶
func SendLoginReply ¶
func SendLoginReply(r *protos.LoginReply, s *transport.ServerSocket) error
func SendLoginRequest ¶
func SendLoginRequest(r *protos.Login, s *transport.ClientSocket) error
func ServiceLoginReply ¶
func ServiceLoginReply(s *transport.ClientSocket) (bool, error)
func ServiceLoginRequests ¶
func ServiceLoginRequests(s *transport.ServerSocket, f, sf string) error
func SetupClientSocket ¶
func SetupClientSocket(address string) *transport.ClientSocket
func SetupServerSocket ¶
func SetupServerSocket(address string) *transport.ServerSocket
Types ¶
Click to show internal directories.
Click to hide internal directories.