contract

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: AGPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	Uuid       string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Code       string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	ContractId int64  `protobuf:"varint,4,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	CreatedAt  string `protobuf:"bytes,1001,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt  string `protobuf:"bytes,1002,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt  string `protobuf:"bytes,1003,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
}

func (*Contract) Descriptor

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

func (*Contract) GetCode

func (m *Contract) GetCode() string

func (*Contract) GetContractId

func (m *Contract) GetContractId() int64

func (*Contract) GetCreatedAt

func (m *Contract) GetCreatedAt() string

func (*Contract) GetDeletedAt

func (m *Contract) GetDeletedAt() string

func (*Contract) GetName

func (m *Contract) GetName() string

func (*Contract) GetUpdatedAt

func (m *Contract) GetUpdatedAt() string

func (*Contract) GetUuid

func (m *Contract) GetUuid() string

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) String

func (m *Contract) String() string

func (*Contract) Validate

func (m *Contract) Validate() error

Validate checks the field values on Contract with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Contract) XXX_DiscardUnknown

func (m *Contract) XXX_DiscardUnknown()

func (*Contract) XXX_Marshal

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

func (*Contract) XXX_Merge

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

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

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

type ContractValidationError

type ContractValidationError struct {
	// contains filtered or unexported fields
}

ContractValidationError is the validation error returned by Contract.Validate if the designated constraints aren't met.

func (ContractValidationError) Cause

func (e ContractValidationError) Cause() error

Cause function returns cause value.

func (ContractValidationError) Error

func (e ContractValidationError) Error() string

Error satisfies the builtin error interface

func (ContractValidationError) ErrorName

func (e ContractValidationError) ErrorName() string

ErrorName returns error name.

func (ContractValidationError) Field

func (e ContractValidationError) Field() string

Field function returns field value.

func (ContractValidationError) Key

func (e ContractValidationError) Key() bool

Key function returns key value.

func (ContractValidationError) Reason

func (e ContractValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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