Documentation ¶
Index ¶
- Constants
- Variables
- func NewPageFil(mntl *minigo.Minitel, pseudo string) *minigo.Page
- func NewPageHome(mntl *minigo.Minitel) *minigo.Page
- func NewPageMessage(mntl *minigo.Minitel, pseudo string) *minigo.Page
- func NewServiceCuicui() int
- func ParseCommandString(cmd string) int
- func PrintErrorMessage(msg string) error
- type PPActivity
- type PPEngine
- func (p *PPEngine) Follow(src string, dst string) error
- func (p *PPEngine) GetFeed(pseudo string) ([]*PPPost, error)
- func (p *PPEngine) LogUser(pseudo string) error
- func (p *PPEngine) LogoutUser(pseudo string) error
- func (p *PPEngine) Post(pseudo string, content string) error
- func (p *PPEngine) UnFollow(src string, dst string) error
- type PPFollow
- type PPPost
- type PPUser
Constants ¶
View Source
const ( FilCmdStr = "/FIL" MessageCmdStr = "/MSG" NotifCmdStr = "/NOT" RechercheCmdStr = "/CRC" ProfilCmdStr = "/PRO" AbonnementCmdStr = "/ABO" EditerCmdStr = "/EDI" AnnuaireCmdStr = "/ANU" )
View Source
const ( FilId = iota MessageId NotifId RechercheId ProfilId AbonnementId EditerId AnnuaireId )
View Source
const PPActivitiesDir = "pp_activities_db"
View Source
const PPFollowsDir = "pp_follows_db"
View Source
const PPPostsDir = "pp_posts_db"
View Source
const PPUsersDir = "pp_users_db"
Variables ¶
View Source
var CuicuiCommands = map[string]int{ FilCmdStr: FilId, MessageCmdStr: MessageId, NotifCmdStr: NotifId, RechercheCmdStr: RechercheId, ProfilCmdStr: ProfilId, AbonnementCmdStr: AbonnementId, EditerCmdStr: EditerId, AnnuaireCmdStr: AnnuaireId, }
View Source
var PiouPiou, _ = NewPPEngine("/media/core/")
Functions ¶
func NewServiceCuicui ¶
func NewServiceCuicui() int
func ParseCommandString ¶
func PrintErrorMessage ¶
Types ¶
type PPActivity ¶
type PPEngine ¶
type PPEngine struct {
// contains filtered or unexported fields
}
func NewPPEngine ¶
func (*PPEngine) LogoutUser ¶
Click to show internal directories.
Click to hide internal directories.