Documentation
¶
Index ¶
- Constants
- func AgentAction(action string) bool
- func AgentActions() []string
- func HTTPAction(action string) bool
- func HTTPOnlyAction(action string) bool
- func PublicAction(action string) bool
- func PublicActions() []string
- func RealtimeWSClientRequestAction(action string) bool
- func WSStreamOnlyAction(action string) bool
- type ActionAuth
- type ActionContractDocument
- type ActionContractSpec
- type ActionSpec
- type ActionTransport
Constants ¶
View Source
const ActionContractSchemaVersion = 1
View Source
const RealtimeWSTicketAction = "realtime.ws_ticket.create"
Variables ¶
This section is empty.
Functions ¶
func AgentAction ¶
func AgentActions ¶
func AgentActions() []string
func HTTPAction ¶
func HTTPOnlyAction ¶
func PublicAction ¶
func PublicActions ¶
func PublicActions() []string
func WSStreamOnlyAction ¶
Types ¶
type ActionAuth ¶
type ActionAuth string
const ( ActionAuthPublic ActionAuth = "public" ActionAuthOwner ActionAuth = "owner" ActionAuthAgent ActionAuth = "agent" )
type ActionContractDocument ¶
type ActionContractDocument struct {
SchemaVersion int `json:"schema_version"`
GeneratedFrom string `json:"generated_from"`
Actions []ActionContractSpec `json:"actions"`
}
func ActionContract ¶
func ActionContract() ActionContractDocument
type ActionContractSpec ¶
type ActionSpec ¶
type ActionSpec struct {
Name string
Auth ActionAuth
Transport ActionTransport
}
func ActionSpecFor ¶
func ActionSpecFor(action string) (ActionSpec, bool)
func ActionSpecs ¶
func ActionSpecs() []ActionSpec
type ActionTransport ¶
type ActionTransport string
const ( ActionTransportHTTPOnly ActionTransport = "http_only" ActionTransportHTTPAndWS ActionTransport = "http_and_ws_request" ActionTransportWSStreamOnly ActionTransport = "ws_stream_only" ActionTransportInternalOnly ActionTransport = "internal_only" )
Click to show internal directories.
Click to hide internal directories.