Documentation
¶
Index ¶
- func MachineId() string
- func NewClient(remoteMachine *Machine, localMachine *Machine) *client
- func UnmarshalJsonBody(re *http.Request, v any) error
- type ClientStore
- type LiteMachine
- type Machine
- type Response
- type Server
- func (server *Server) HandleAddUser(iUser user.IUser)
- func (server *Server) HandleDeleteUser(username string)
- func (server *Server) Init(context *core.Context)
- func (server *Server) Name() string
- func (server *Server) Query(parameter *core.Parameter, localValue any) []any
- func (server *Server) Start() error
- func (server *Server) WriteMessage(msg message.IMessage, writeFunc user.WriteCallBackFunc)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientStore ¶
type ClientStore struct {
// contains filtered or unexported fields
}
func NewClientStore ¶
func NewClientStore(context *core.Context, localMachine *Machine) *ClientStore
func (*ClientStore) Query ¶
func (ms *ClientStore) Query(parameter *core.Parameter, localValue any) []any
func (*ClientStore) SendAddUser ¶
func (ms *ClientStore) SendAddUser(username string)
func (*ClientStore) SendDeleteUser ¶
func (ms *ClientStore) SendDeleteUser(username string)
type LiteMachine ¶
type Server ¶
type Server struct {
core.IForward
core.IHttpServer
// contains filtered or unexported fields
}
func (*Server) HandleAddUser ¶
func (*Server) HandleDeleteUser ¶
func (*Server) WriteMessage ¶
func (server *Server) WriteMessage(msg message.IMessage, writeFunc user.WriteCallBackFunc)
Click to show internal directories.
Click to hide internal directories.