controller

package
v0.0.0-...-edfd1aa Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtrlRelease

func CtrlRelease(cmd *cobra.Command, args []string)

func WrapperRun

func WrapperRun(fn func()) func(*cobra.Command, []string)

Types

type AdminCtrl

type AdminCtrl interface {
	GetStatus()
	Login()
	Logout()
	Register()
	Log()
}

func GetAdminCtrl

func GetAdminCtrl() AdminCtrl

type Controller

type Controller struct {
	Args []string
	Cmd  *cobra.Command
	Ctx  Ctx
	Srv  service.Manager
}

func (*Controller) GetStatus

func (c *Controller) GetStatus()

func (*Controller) Log

func (c *Controller) Log()

func (*Controller) Login

func (c *Controller) Login()

func (*Controller) Logout

func (c *Controller) Logout()

func (*Controller) MeetingAdd

func (c *Controller) MeetingAdd()

func (*Controller) MeetingCreate

func (c *Controller) MeetingCreate()

func (*Controller) MeetingDelete

func (c *Controller) MeetingDelete()

func (*Controller) MeetingList

func (c *Controller) MeetingList()

func (*Controller) MeetingQuit

func (c *Controller) MeetingQuit()

func (*Controller) MeetingRemove

func (c *Controller) MeetingRemove()

func (*Controller) MeetingSet

func (c *Controller) MeetingSet()

func (*Controller) Register

func (c *Controller) Register()

func (*Controller) UserDelete

func (c *Controller) UserDelete()

func (*Controller) UserList

func (c *Controller) UserList()

func (*Controller) UserSet

func (c *Controller) UserSet()

type Ctx

type Ctx struct {
	Value *viper.Viper
	Visit map[string]bool
	User  User
}

func (*Ctx) Get

func (c *Ctx) Get(key string) (interface{}, bool)

func (*Ctx) GetBool

func (c *Ctx) GetBool(key string) (bool, bool)

func (*Ctx) GetSecret

func (c *Ctx) GetSecret(key string) (interface{}, bool)

func (*Ctx) GetSecretString

func (c *Ctx) GetSecretString(key string) (string, bool)

func (*Ctx) GetString

func (c *Ctx) GetString(key string) (string, bool)

func (*Ctx) GetStringSlice

func (c *Ctx) GetStringSlice(key string) ([]string, bool)

func (*Ctx) GetTime

func (c *Ctx) GetTime(key string) (time.Time, bool)

type MeetingCtrl

type MeetingCtrl interface {
	MeetingCreate()
	MeetingSet()
	MeetingQuit()
	MeetingDelete()
	MeetingAdd()
	MeetingList()
	MeetingRemove()
}

func GetMeetingCtrl

func GetMeetingCtrl() MeetingCtrl

type User

type User interface {
	Get() string
	Set(string) error
}

type UserCtrl

type UserCtrl interface {
	UserDelete()
	UserList()
	UserSet()
}

func GetUserCtrl

func GetUserCtrl() UserCtrl

Jump to

Keyboard shortcuts

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