package dgs

import "github.com/Diarkis/diarkis/client/go/modules/dgs"

Index

Constants

const Enabled = false

Enabled is the enabled status of the DGS package.

Types

type DGS

type DGS struct{}

DGS represents stub implementation of the Diarkis DGS client.

func NewDGS

func NewDGS(uid string, udpCli *udp.Client) *DGS

NewDGS is a function stub DO NOT USE.

func (*DGS) Create

func (d *DGS) Create(memberIDs []string, metadata []byte)

Create is a function stub DO NOT USE.

func (*DGS) DeleteOnCreate

func (d *DGS) DeleteOnCreate()

DeleteOnCreate is a function stub DO NOT USE.

func (*DGS) DeleteOnCreateResponse

func (d *DGS) DeleteOnCreateResponse()

DeleteOnCreateResponse is a function stub DO NOT USE.

func (*DGS) DeleteOnRPC

func (d *DGS) DeleteOnRPC()

DeleteOnRPC is a function stub DO NOT USE.

func (*DGS) OnCreate

func (d *DGS) OnCreate(cb func(InstanceUserData))

OnCreate is a function stub DO NOT USE.

func (*DGS) OnCreateResponse

func (d *DGS) OnCreateResponse(cb func(success bool, payload []byte))

OnCreateResponse is a function stub DO NOT USE.

func (*DGS) OnRPC

func (d *DGS) OnRPC(cb func(cmd uint16, payload []byte))

OnRPC is a function stub DO NOT USE.

func (*DGS) OnReconnect

func (d *DGS) OnReconnect(cb func())

OnReconnect is a function stub DO NOT USE.

func (*DGS) RPC

func (d *DGS) RPC(cmd uint16, metadata []byte)

RPC is a function stub DO NOT USE.

type InstanceUserData

type InstanceUserData struct {
	UID        string `json:"uid"`
	SID        []byte `json:"sid"`
	Key        []byte `json:"key"`
	IV         []byte `json:"iv"`
	MacKey     []byte `json:"macKey"`
	ServerType string `json:"serverType"`
	ServerHost string `json:"serverHost"`
	ServerPort int    `json:"serverPort"`
}

InstanceUserData user data information used to connect to remote DGS endpoint.