cluster

package
v0.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MachineId

func MachineId() string

func NewClient

func NewClient(remoteMachine *Machine, localMachine *Machine, context *core.Context) *client

func UnmarshalJsonBody

func UnmarshalJsonBody(re *http.Request, v any) error

Types

type ClientOperate added in v0.0.6

type ClientOperate struct {
	// contains filtered or unexported fields
}

func NewClientOperate added in v0.0.6

func NewClientOperate(context *core.Context, localMachine *Machine) *ClientOperate

func (*ClientOperate) Query added in v0.0.6

func (ms *ClientOperate) Query(parameter *core.Parameter, localValue any) []any

type LiteMachine

type LiteMachine struct {
	Link      string
	MachineId string
}

type Machine

type Machine struct {
	Link      string
	MachineId string
	IsLocal   bool
	Scheme    string
	Address   string
	Port      int
	// contains filtered or unexported fields
}

type MultiMessage added in v0.1.27

type MultiMessage struct {
	From   string
	ToUser []string
	Text   string
}

type Response

type Response struct {
	Code int
	Msg  string
}

type Server

type Server struct {
	core.IForward
	core.IHttpServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Init

func (server *Server) Init(context *core.Context)

func (*Server) Name

func (server *Server) Name() string

func (*Server) Query

func (server *Server) Query(parameter *core.Parameter, localValue any) []any

func (*Server) Start

func (server *Server) Start() error

func (*Server) WriteSyncMessage added in v0.1.35

func (server *Server) WriteSyncMessage(iMessage message.IMessage) (fa bool, err error)

type User

type User struct {
	MachineId string
	UserId    string
}

func NewUser

func NewUser(MachineId string, UserId string) *User

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL