dto

package
v0.0.0-...-be0919c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIdentityRequest

type CreateIdentityRequest struct {
	Identity string `json:"identity"`
}

type NodeRegisterRequest

type NodeRegisterRequest struct {
	ServiceProposal dto_discovery.ServiceProposal `json:"service_proposal"`
}

type NodeStatsRequest

type NodeStatsRequest struct {
	NodeKey  string         `json:"node_key"`
	Sessions []SessionStats `json:"sessions"`
}

type ProposalUnregisterRequest

type ProposalUnregisterRequest struct {
	// Unique identifier of a provider
	ProviderID string `json:"provider_id"`
}

type ProposalsRequest

type ProposalsRequest struct {
	NodeKey string `json:"node_key"`
}

type ProposalsResponse

type ProposalsResponse struct {
	Proposals []dto.ServiceProposal `json:"proposals"`
}

type SessionStats

type SessionStats struct {
	BytesSent       int    `json:"bytes_sent"`
	BytesReceived   int    `json:"bytes_received"`
	ProviderID      string `json:"provider_id"`
	ConsumerCountry string `json:"consumer_country"`
}

SessionStats mapped to json structure

Jump to

Keyboard shortcuts

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