server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	// The user name.
	Name string
	// contains filtered or unexported fields
}

User represents an end-user which connected to the server via the DTail client.

func New

func New(name, remoteAddress string) *User

New returns a new user.

func (*User) HasFilePermission

func (u *User) HasFilePermission(filePath string) (hasPermission bool)

HasFilePermission is used to determine whether user is alowed to read a file.

func (*User) String

func (u *User) String() string

String representation of the user.

Jump to

Keyboard shortcuts

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