howdy/authentication/session

Types

pub type Session {
  Session
}

Constructors

  • Session
pub type TestSession {
  TestSession(
    insert: fn(String, String, Int, List(#(String, String))) ->
      Bool,
    lookup: fn(String) ->
      Result(
        #(String, String, Int, List(#(String, String))),
        Nil,
      ),
    delete: fn(String) -> Bool,
  )
}

Constructors

  • TestSession(
      insert: fn(String, String, Int, List(#(String, String))) ->
        Bool,
      lookup: fn(String) ->
        Result(#(String, String, Int, List(#(String, String))), Nil),
      delete: fn(String) -> Bool,
    )

Functions

pub fn delete(id: String) -> Bool
pub fn insert(id: String, name: String, timeout: Int, claims: List(
    #(String, String),
  )) -> Bool
pub fn lookup(id: String) -> Result(a, Nil)
pub fn new() -> Identifier