Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HTTPConfAddress the local address to listen on HTTPConfAddress = "address" // HTTPConfPublicURL the public address of the node to advertise in the swagger HTTPConfPublicURL = "publicURL" // HTTPConfPort the local port to listen on for HTTP/Websocket connections HTTPConfPort = "port" // HTTPConfReadTimeout the write timeout for the HTTP server HTTPConfReadTimeout = "readTimeout" // HTTPConfWriteTimeout the write timeout for the HTTP server HTTPConfWriteTimeout = "writeTimeout" // HTTPConfTLSCAFile the TLS certificate authority file for the HTTP server HTTPConfTLSCAFile = "tls.caFile" // HTTPConfTLSCertFile the TLS certificate file for the HTTP server HTTPConfTLSCertFile = "tls.certFile" // HTTPConfTLSClientAuth whether the HTTP server requires a mutual TLS connection HTTPConfTLSClientAuth = "tls.clientAuth" // HTTPConfTLSEnabled whether TLS is enabled for the HTTP server HTTPConfTLSEnabled = "tls.enabled" // HTTPConfTLSKeyFile the private key file for TLS on the server HTTPConfTLSKeyFile = "tls.keyFile" )
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig()
Types ¶
type Server ¶
type Server interface {
Serve(ctx context.Context, o orchestrator.Orchestrator) error
}
Server is the external interface for the API Server
func NewAPIServer ¶
func NewAPIServer() Server
Source Files ¶
- admin_routes.go
- favicons.go
- http_server.go
- restfilter.go
- route_admin_delete_config_record.go
- route_admin_get_config.go
- route_admin_get_config_record.go
- route_admin_get_config_records.go
- route_admin_put_config_record.go
- route_admin_put_config_reset.go
- route_delete_subscription.go
- route_get_batch_by_id.go
- route_get_batches.go
- route_get_data.go
- route_get_data_blob.go
- route_get_data_by_id.go
- route_get_data_msgs.go
- route_get_datatype_by_name.go
- route_get_datatypes.go
- route_get_datatypes_by_id.go
- route_get_event_by_id.go
- route_get_events.go
- route_get_msg_by_id.go
- route_get_msg_data.go
- route_get_msg_events.go
- route_get_msg_ops.go
- route_get_msg_txn.go
- route_get_msgs.go
- route_get_namespace.go
- route_get_namespaces.go
- route_get_net_node.go
- route_get_net_nodes.go
- route_get_net_org.go
- route_get_net_orgs.go
- route_get_op_by_id.go
- route_get_ops.go
- route_get_status.go
- route_get_subscription_by_id.go
- route_get_subscriptions.go
- route_get_token_accounts.go
- route_get_token_pool_by_name.go
- route_get_token_pools.go
- route_get_txn_by_id.go
- route_get_txn_ops.go
- route_get_txns.go
- route_post_broadcast_datatype.go
- route_post_broadcast_message.go
- route_post_broadcast_namespace.go
- route_post_data.go
- route_post_new_datatype.go
- route_post_new_message_broadcast.go
- route_post_new_message_private.go
- route_post_new_message_requestreply.go
- route_post_new_namespace.go
- route_post_new_node_self.go
- route_post_new_organization.go
- route_post_new_organization_self.go
- route_post_new_subscription.go
- route_post_register_node.go
- route_post_register_node_org.go
- route_post_register_org.go
- route_post_request_message.go
- route_post_send_message.go
- route_post_token_pool.go
- route_put_subscription.go
- routes.go
- server.go
- server_cors.go
- static.go
Click to show internal directories.
Click to hide internal directories.