domain

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package domain provides interface and default implementation of domain.

Usage:

domain := NewBaseDomain(parent, "DomainName")

classID := domain.GetClassID()
name := domain.GetName()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseDomain

type BaseDomain struct {
	contract.BaseSmartContract
	//class object.Factory
	Name string
}

BaseDomain is a base implementation of Domain interface.

func NewBaseDomain

func NewBaseDomain(parent object.Parent, class object.Factory, name string) *BaseDomain

NewBaseDomain creates new BaseDomain instance.

func (*BaseDomain) GetClassID

func (d *BaseDomain) GetClassID() string

GetClassID return string representation of object's class.

func (*BaseDomain) GetName

func (d *BaseDomain) GetName() string

GetName return name of domain.

type Domain

type Domain interface {
	contract.SmartContract
}

Domain is a collection of objects and related policies (construction, referencing, logical consensus etc).

type InternalDomain added in v0.0.2

type InternalDomain interface {
	contract.InternalSmartContract
}

Jump to

Keyboard shortcuts

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