Documentation ¶
Index ¶
- Constants
- func EntityToYamlStrings(entity any) []string
- type Args
- type ClientOpt
- type ClientRpc
- type GetInfoArgs
- type GetInfoReply
- type InfoFound
- type Reply
- type RpcI
- type RpcServer
- type ServerOpt
- type ServerRpc
- func (t *ServerRpc) GetBases(args Args, reply *Reply) error
- func (t *ServerRpc) GetHealth(args Args, reply *bool) error
- func (t *ServerRpc) GetInfo(args GetInfoArgs, reply *GetInfoReply) error
- func (t *ServerRpc) IsInfoFound(args GetInfoArgs, name string, nickname string) (bool, bool)
- func (t *ServerRpc) NewInfoFound(Nickname string, Name string, Entity string, Obtainable bool) InfoFound
Constants ¶
View Source
const DarkstatRpcSock = "/tmp/darkstat/rpc.sock"
Variables ¶
This section is empty.
Functions ¶
func EntityToYamlStrings ¶ added in v1.64.0
Types ¶
type ClientRpc ¶
type ClientRpc struct {
// contains filtered or unexported fields
}
/ CLIENT///////////////////
func (*ClientRpc) GetInfo ¶ added in v1.64.0
func (r *ClientRpc) GetInfo(args GetInfoArgs, reply *GetInfoReply) error
type GetInfoArgs ¶ added in v1.64.0
type GetInfoArgs struct {
Query string
}
type GetInfoReply ¶ added in v1.64.0
type Reply ¶
type Reply struct {
Bases []*configs_export.Base
}
type RpcI ¶
type RpcI interface { GetBases(args Args, reply *Reply) error GetHealth(args Args, reply *bool) error GetInfo(args GetInfoArgs, reply *GetInfoReply) error }
type RpcServer ¶
type RpcServer struct {
// contains filtered or unexported fields
}
func NewRpcServer ¶
type ServerRpc ¶
type ServerRpc struct {
// contains filtered or unexported fields
}
func (*ServerRpc) GetInfo ¶ added in v1.64.0
func (t *ServerRpc) GetInfo(args GetInfoArgs, reply *GetInfoReply) error
func (*ServerRpc) IsInfoFound ¶ added in v1.64.0
Click to show internal directories.
Click to hide internal directories.