Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { *grpc.Server ninshou.NinshouServer }
Server defines the structure of a server for the Ninshou service.
func NewServer ¶
func NewServer(config *service.ServerConfig) *Server
NewServer returns a new gRPC server for the Ninshou service.
func (*Server) CreateUser ¶
CreateUser creates a new user record.
func (*Server) RegisterServer ¶
RegisterServer registers the gRPC server as a Ninshou service handler.
func (*Server) StartServer ¶
func (s *Server) StartServer()
StartServer initializes the MongoDB connection and database and starts the server.
Click to show internal directories.
Click to hide internal directories.