Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultRPCPort = 10118 DefaultWebPort = 10119 DefaultMongoConnectionURI = "mongodb://localhost:27017" DefaultMongoConnectionTimeoutSec = 5 DefaultMongoPingTimeoutSec = 5 DefaultMongoDatabase = "metis" DefaultYorkieRPCAddr = "localhost:11101" DefaultYorkieWebhookToken = "metis-server" DefaultYorkieCollection = "projects" )
The following are the defaults for the Server config.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RPC *rpc.Config `json:"RPC"` Web *web.Config `json:"Web"` Mongo *mongodb.Config `json:"Mongo"` Yorkie *yorkie.Config `json:"Yorkie"` }
Config is the configuration for creating a Server instance.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server receives requests from the client, stores data in the database,
func (*Server) ShutdownCh ¶
func (s *Server) ShutdownCh() <-chan struct{}
ShutdownCh returns the shutdown channel.
Click to show internal directories.
Click to hide internal directories.