Documentation ¶
Overview ¶
Routes that don't serve much of a practical purpose, short of giving cob_spec an endpoint it needs to play with the server's features.
Index ¶
- type AssignmentReporter
- type CookieMonster
- type CookieRegistrar
- type CookieRoute
- type GoBackHomeResource
- type NopPostResource
- type NopPostRoute
- type NopPutResource
- type NopPutRoute
- type ParameterReporter
- type ParameterRoute
- type ReadOnlyResource
- type ReadOnlyRoute
- type ReadWriteNopResource
- func (controller *ReadWriteNopResource) Get(client io.Writer, message http.RequestMessage)
- func (controller *ReadWriteNopResource) Head(client io.Writer, message http.RequestMessage)
- func (controller *ReadWriteNopResource) Name() string
- func (controller *ReadWriteNopResource) Post(client io.Writer, message http.RequestMessage)
- func (controller *ReadWriteNopResource) Put(client io.Writer, message http.RequestMessage)
- type ReadWriteResource
- type ReadWriteRoute
- type ReadableNopResource
- type RedirectRoute
- type RelocatedResource
- type SingletonResource
- func (singleton *SingletonResource) Delete(client io.Writer, message http.RequestMessage)
- func (singleton *SingletonResource) Get(client io.Writer, message http.RequestMessage)
- func (singleton *SingletonResource) Name() string
- func (singleton *SingletonResource) Options(client io.Writer, message http.RequestMessage)
- func (singleton *SingletonResource) Post(client io.Writer, message http.RequestMessage)
- func (singleton *SingletonResource) Put(client io.Writer, message http.RequestMessage)
- type SingletonRoute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentReporter ¶
type AssignmentReporter struct{}
Lists query parameters as simple assignment statements
func (*AssignmentReporter) Get ¶
func (reporter *AssignmentReporter) Get(client io.Writer, message http.RequestMessage)
func (*AssignmentReporter) Name ¶
func (reporter *AssignmentReporter) Name() string
type CookieMonster ¶
type CookieMonster struct{}
"C" IS FOR COOKIE
func (*CookieMonster) Get ¶
func (monster *CookieMonster) Get(client io.Writer, message http.RequestMessage)
func (*CookieMonster) Name ¶
func (monster *CookieMonster) Name() string
type CookieRegistrar ¶
type CookieRegistrar struct{}
Registers cookies
func (*CookieRegistrar) Get ¶
func (registrar *CookieRegistrar) Get(client io.Writer, message http.RequestMessage)
func (*CookieRegistrar) Name ¶
func (registrar *CookieRegistrar) Name() string
type CookieRoute ¶
type CookieRoute struct { SetTypePath string Registrar *CookieRegistrar ReadTypePath string Monster *CookieMonster }
Routes to register some content to return from the server in the form of a cookie and to ensure that the cookie sent back from the browser contains that content
func NewCookieRoute ¶
func NewCookieRoute(setTypePath, readTypePath string) *CookieRoute
func (*CookieRoute) Route ¶
func (route *CookieRoute) Route(requested http.RequestMessage) http.Request
type GoBackHomeResource ¶
type GoBackHomeResource struct{}
func (*GoBackHomeResource) Get ¶
func (*GoBackHomeResource) Get(client io.Writer, message http.RequestMessage)
func (*GoBackHomeResource) Name ¶
func (*GoBackHomeResource) Name() string
type NopPostResource ¶
type NopPostResource struct{}
A resource where it's OK to write
func (*NopPostResource) Name ¶
func (*NopPostResource) Name() string
func (*NopPostResource) Post ¶
func (resource *NopPostResource) Post(client io.Writer, message http.RequestMessage)
type NopPostRoute ¶
type NopPostRoute struct { Path string Resource *NopPostResource }
func NewNopPostRoute ¶
func NewNopPostRoute(path string) *NopPostRoute
func (*NopPostRoute) Route ¶
func (route *NopPostRoute) Route(requested http.RequestMessage) http.Request
type NopPutResource ¶
type NopPutResource struct{}
A resource where it's OK to PUT
func (*NopPutResource) Name ¶
func (*NopPutResource) Name() string
func (*NopPutResource) Put ¶
func (resource *NopPutResource) Put(client io.Writer, message http.RequestMessage)
type NopPutRoute ¶
type NopPutRoute struct { Path string Resource *NopPutResource }
func NewNopPutRoute ¶
func NewNopPutRoute(path string) *NopPutRoute
func (*NopPutRoute) Route ¶
func (route *NopPutRoute) Route(requested http.RequestMessage) http.Request
type ParameterReporter ¶
type ParameterReporter interface { Name() string Get(client io.Writer, message http.RequestMessage) }
type ParameterRoute ¶
type ParameterRoute struct { Path string Reporter ParameterReporter }
func NewParameterRoute ¶
func NewParameterRoute(path string) *ParameterRoute
func (*ParameterRoute) Route ¶
func (route *ParameterRoute) Route(requested http.RequestMessage) http.Request
type ReadOnlyResource ¶
type ReadOnlyResource interface { Name() string Get(client io.Writer, message http.RequestMessage) Head(client io.Writer, message http.RequestMessage) }
type ReadOnlyRoute ¶
type ReadOnlyRoute struct { Path string Resource ReadOnlyResource }
func NewReadOnlyRoute ¶
func NewReadOnlyRoute(path string) *ReadOnlyRoute
func (*ReadOnlyRoute) Route ¶
func (route *ReadOnlyRoute) Route(requested http.RequestMessage) http.Request
type ReadWriteNopResource ¶
type ReadWriteNopResource struct{}
Handles various read/write requests, but doesn't actually do anything
func (*ReadWriteNopResource) Get ¶
func (controller *ReadWriteNopResource) Get(client io.Writer, message http.RequestMessage)
func (*ReadWriteNopResource) Head ¶
func (controller *ReadWriteNopResource) Head(client io.Writer, message http.RequestMessage)
func (*ReadWriteNopResource) Name ¶
func (controller *ReadWriteNopResource) Name() string
func (*ReadWriteNopResource) Post ¶
func (controller *ReadWriteNopResource) Post(client io.Writer, message http.RequestMessage)
func (*ReadWriteNopResource) Put ¶
func (controller *ReadWriteNopResource) Put(client io.Writer, message http.RequestMessage)
type ReadWriteResource ¶
type ReadWriteResource interface { Name() string Get(client io.Writer, message http.RequestMessage) Head(client io.Writer, message http.RequestMessage) Post(client io.Writer, message http.RequestMessage) Put(client io.Writer, message http.RequestMessage) }
type ReadWriteRoute ¶
type ReadWriteRoute struct { Path string Resource ReadWriteResource }
func NewReadWriteRoute ¶
func NewReadWriteRoute(path string) *ReadWriteRoute
func (*ReadWriteRoute) Route ¶
func (route *ReadWriteRoute) Route(requested http.RequestMessage) http.Request
type ReadableNopResource ¶
type ReadableNopResource struct{}
Handles various read requests, but doesn't actually do anything
func (*ReadableNopResource) Get ¶
func (controller *ReadableNopResource) Get(client io.Writer, message http.RequestMessage)
func (*ReadableNopResource) Head ¶
func (controller *ReadableNopResource) Head(client io.Writer, message http.RequestMessage)
func (*ReadableNopResource) Name ¶
func (controller *ReadableNopResource) Name() string
type RedirectRoute ¶
type RedirectRoute struct { Path string Resource RelocatedResource }
func NewRedirectRoute ¶
func NewRedirectRoute(path string) *RedirectRoute
func (*RedirectRoute) Route ¶
func (route *RedirectRoute) Route(requested http.RequestMessage) http.Request
type RelocatedResource ¶
type RelocatedResource interface {
Name() string
}
type SingletonResource ¶
type SingletonResource struct { CollectionPath string // contains filtered or unexported fields }
A collection to which you can POST or do CRUD on a single, most recent data member
func (*SingletonResource) Delete ¶
func (singleton *SingletonResource) Delete(client io.Writer, message http.RequestMessage)
func (*SingletonResource) Get ¶
func (singleton *SingletonResource) Get(client io.Writer, message http.RequestMessage)
func (*SingletonResource) Name ¶
func (singleton *SingletonResource) Name() string
func (*SingletonResource) Options ¶
func (singleton *SingletonResource) Options(client io.Writer, message http.RequestMessage)
func (*SingletonResource) Post ¶
func (singleton *SingletonResource) Post(client io.Writer, message http.RequestMessage)
func (*SingletonResource) Put ¶
func (singleton *SingletonResource) Put(client io.Writer, message http.RequestMessage)
type SingletonRoute ¶
type SingletonRoute struct {
Singleton *SingletonResource
}
func NewSingletonRoute ¶
func NewSingletonRoute(path string) *SingletonRoute
func (*SingletonRoute) Route ¶
func (route *SingletonRoute) Route(requested http.RequestMessage) http.Request