summaryrefslogtreecommitdiff
path: root/cask/src/cask/package.scala
blob: 27c397c9b490bb22283186a35e6f729d07c524f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import cask.util.Logger

package object cask {
  // model
  type Response[T] = model.Response[T]
  val Response = model.Response
  val Abort = model.Abort
  val Redirect = model.Redirect
  val StaticFile = model.StaticFile
  val StaticResource = model.StaticResource
  type FormEntry = model.FormEntry
  val FormEntry = model.FormEntry
  type FormValue = model.FormValue
  val FormValue = model.FormValue
  type FormFile = model.FormFile
  val FormFile = model.FormFile
  type Cookie = model.Cookie
  val Cookie = model.Cookie
  type Request = model.Request
  val Request = model.Request

  // endpoints
  type websocket = endpoints.websocket
  val WebsocketResult = endpoints.WebsocketResult
  type WebsocketResult = endpoints.WebsocketResult

  type get = endpoints.get
  type post = endpoints.post
  type put = endpoints.put
  type route = endpoints.route
  type staticFiles = endpoints.staticFiles
  type staticResources = endpoints.staticResources
  type postJson = endpoints.postJson
  type getJson = endpoints.getJson
  type postForm = endpoints.postForm

  // main
  type MainRoutes = main.MainRoutes
  type Routes = main.Routes

  type Main = main.Main
  type RawDecorator = router.RawDecorator
  type HttpEndpoint[InnerReturned, Input] = router.HttpEndpoint[InnerReturned, Input]

  type WsHandler = cask.endpoints.WsHandler
  val WsHandler = cask.endpoints.WsHandler
  type WsActor = cask.endpoints.WsActor
  val WsActor = cask.endpoints.WsActor
  type WsChannelActor = cask.endpoints.WsChannelActor
  type WsClient = cask.util.WsClient
  val WsClient = cask.util.WsClient
  val Ws = cask.util.Ws

  // util
  type Logger = util.Logger
  val Logger = util.Logger
}