user

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Name       string    `json:"name"`
	IP         string    `json:"ip"`
	Lastupdate time.Time `json:"-"`
}

type Users

type Users struct {
	// contains filtered or unexported fields
}

func (*Users) Add

func (users *Users) Add(user User) (err error)

func (*Users) Equal

func (users *Users) Equal(u Users) bool

func (*Users) Get

func (users *Users) Get(ip string) (user User, err error)

func (*Users) HasUser

func (users *Users) HasUser(ip string) bool

func (*Users) IPs

func (users *Users) IPs() []string

func (*Users) Remove

func (users *Users) Remove(user User) (err error)

func (*Users) Update

func (users *Users) Update(user User) (err error)

func (*Users) Users

func (users *Users) Users() (userlist []User)

Jump to

Keyboard shortcuts

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