models

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2017 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintUsers added in v0.2.1

func PrintUsers(users []*User)

Types

type User

type User struct {
	LoginName      string
	GitHubUsername string
	SlackUsername  string
	SlackUserId    string
}

User stores login user name and accounts information

func NewUser

func NewUser(loginName string, githubUsername string, slackUsername string, slackUserId string) *User

NewUser creates new User instance

func (*User) Attributes added in v0.2.1

func (u *User) Attributes() []string

func (*User) Envs

func (u *User) Envs() []string

func (*User) RetrieveSlackUserId

func (u *User) RetrieveSlackUserId() error

func (*User) SlackMention

func (u *User) SlackMention() string

func (*User) String

func (u *User) String() (string, error)

Jump to

Keyboard shortcuts

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