projectc

package
v0.0.0-...-21eebf0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContractProjectID = "odysseyproject"

ContractProjectID denotes a contract that can describe a project

Functions

This section is empty.

Types

type ProjectData

type ProjectData struct {
	Datasets      []byzcoin.InstanceID
	Metadata      *catalogc.Metadata
	AccessPubKey  string
	EnclavePubKey string
	Status        ProjectStatus
	EnclaveURL    string
}

ProjectData hold the data of the Odyssey project contract

func (ProjectData) String

func (pd ProjectData) String() string

String returns a human readable string representation of the project data

type ProjectStatus

type ProjectStatus int

ProjectStatus describes the status of the project. It matches what you can find in dsmanager/app/models/projects.go

func StatusFromString

func StatusFromString(status string) (ProjectStatus, error)

StatusFromString return a status given its string representation

func (ProjectStatus) String

func (status ProjectStatus) String() string

type Service

type Service struct {
	// We need to embed the ServiceProcessor, so that incoming messages
	// are correctly handled.
	*onet.ServiceProcessor
}

Service is only used to being able to store our contracts

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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