Documentation
¶
Index ¶
- Constants
- Variables
- 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 ¶
View Source
var (
Log = logus.Log.WithScope("darkgrpc")
)
Functions ¶
func EntityToYamlStrings ¶
Types ¶
type ClientOpt ¶
type ClientOpt func(r *ClientRpc)
func WithPortCli ¶ added in v1.86.2
func WithSockCli ¶
func WithTcpAddress ¶ added in v1.86.4
type ClientRpc ¶
type ClientRpc struct {
// contains filtered or unexported fields
}
/ CLIENT///////////////////
func (*ClientRpc) GetInfo ¶
func (r *ClientRpc) GetInfo(args GetInfoArgs, reply *GetInfoReply) error
type GetInfoArgs ¶
type GetInfoArgs struct {
Query string
}
type GetInfoReply ¶
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 ¶
func (t *ServerRpc) GetInfo(args GetInfoArgs, reply *GetInfoReply) error
func (*ServerRpc) IsInfoFound ¶
Click to show internal directories.
Click to hide internal directories.