ownership

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the ownership types to codec.

Types

type Ownership

type Ownership struct {
	// Service's hash.
	Hash github_com_mesg_foundation_engine_hash.Hash `` /* 135-byte string literal not displayed */
	// The owner of the resource.
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" hash:"name:2" validate:"required"`
	// Resource's hash.
	//
	// Types that are valid to be assigned to Resource:
	//	*Ownership_ServiceHash
	Resource             isOwnership_Resource `protobuf_oneof:"resource"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Ownership is a ownership relation between one owner and a resource.

func (*Ownership) Descriptor

func (*Ownership) Descriptor() ([]byte, []int)

func (*Ownership) Equal

func (this *Ownership) Equal(that interface{}) bool

func (*Ownership) GetResource

func (m *Ownership) GetResource() isOwnership_Resource

func (*Ownership) ProtoMessage

func (*Ownership) ProtoMessage()

func (*Ownership) Reset

func (m *Ownership) Reset()

func (*Ownership) String

func (m *Ownership) String() string

func (*Ownership) XXX_DiscardUnknown

func (m *Ownership) XXX_DiscardUnknown()

func (*Ownership) XXX_Marshal

func (m *Ownership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ownership) XXX_Merge

func (m *Ownership) XXX_Merge(src proto.Message)

func (*Ownership) XXX_OneofWrappers

func (*Ownership) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Ownership) XXX_Size

func (m *Ownership) XXX_Size() int

func (*Ownership) XXX_Unmarshal

func (m *Ownership) XXX_Unmarshal(b []byte) error

type Ownership_ServiceHash

type Ownership_ServiceHash struct {
	ServiceHash github_com_mesg_foundation_engine_hash.Hash `` /* 150-byte string literal not displayed */
}

func (*Ownership_ServiceHash) Equal

func (this *Ownership_ServiceHash) Equal(that interface{}) bool

Jump to

Keyboard shortcuts

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