common

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 16 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountType_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "PRIMARY",
		2:  "TEMPORARY_INCOMING",
		3:  "TEMPORARY_OUTGOING",
		4:  "BUCKET_1_KIN",
		5:  "BUCKET_10_KIN",
		6:  "BUCKET_100_KIN",
		7:  "BUCKET_1_000_KIN",
		8:  "BUCKET_10_000_KIN",
		9:  "BUCKET_100_000_KIN",
		10: "BUCKET_1_000_000_KIN",
		11: "LEGACY_PRIMARY_2022",
		12: "REMOTE_SEND_GIFT_CARD",
		13: "RELATIONSHIP",
		14: "SWAP",
	}
	AccountType_value = map[string]int32{
		"UNKNOWN":               0,
		"PRIMARY":               1,
		"TEMPORARY_INCOMING":    2,
		"TEMPORARY_OUTGOING":    3,
		"BUCKET_1_KIN":          4,
		"BUCKET_10_KIN":         5,
		"BUCKET_100_KIN":        6,
		"BUCKET_1_000_KIN":      7,
		"BUCKET_10_000_KIN":     8,
		"BUCKET_100_000_KIN":    9,
		"BUCKET_1_000_000_KIN":  10,
		"LEGACY_PRIMARY_2022":   11,
		"REMOTE_SEND_GIFT_CARD": 12,
		"RELATIONSHIP":          13,
		"SWAP":                  14,
	}
)

Enum value maps for AccountType.

View Source
var (
	Response_Result_name = map[int32]string{
		0: "OK",
		1: "ERROR",
	}
	Response_Result_value = map[string]int32{
		"OK":    0,
		"ERROR": 1,
	}
)

Enum value maps for Response_Result.

View Source
var File_common_v1_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccountType

type AccountType int32

AccountType associates a type to an account, which infers how an account is used within the Code ecosystem.

const (
	AccountType_UNKNOWN               AccountType = 0
	AccountType_PRIMARY               AccountType = 1
	AccountType_TEMPORARY_INCOMING    AccountType = 2
	AccountType_TEMPORARY_OUTGOING    AccountType = 3
	AccountType_BUCKET_1_KIN          AccountType = 4
	AccountType_BUCKET_10_KIN         AccountType = 5
	AccountType_BUCKET_100_KIN        AccountType = 6
	AccountType_BUCKET_1_000_KIN      AccountType = 7
	AccountType_BUCKET_10_000_KIN     AccountType = 8
	AccountType_BUCKET_100_000_KIN    AccountType = 9
	AccountType_BUCKET_1_000_000_KIN  AccountType = 10
	AccountType_LEGACY_PRIMARY_2022   AccountType = 11
	AccountType_REMOTE_SEND_GIFT_CARD AccountType = 12
	AccountType_RELATIONSHIP          AccountType = 13
	AccountType_SWAP                  AccountType = 14
)

func (AccountType) Descriptor

func (AccountType) Enum

func (x AccountType) Enum() *AccountType

func (AccountType) EnumDescriptor deprecated

func (AccountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccountType.Descriptor instead.

func (AccountType) Number

func (x AccountType) Number() protoreflect.EnumNumber

func (AccountType) String

func (x AccountType) String() string

func (AccountType) Type

type AppInstallId

type AppInstallId struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

AppInstallId is a unque ID tied to a client app installation. It does not identify a device. Value should remain private and not be shared across installs.

func (*AppInstallId) Descriptor deprecated

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

Deprecated: Use AppInstallId.ProtoReflect.Descriptor instead.

func (*AppInstallId) GetValue

func (x *AppInstallId) GetValue() string

func (*AppInstallId) ProtoMessage

func (*AppInstallId) ProtoMessage()

func (*AppInstallId) ProtoReflect

func (x *AppInstallId) ProtoReflect() protoreflect.Message

func (*AppInstallId) Reset

func (x *AppInstallId) Reset()

func (*AppInstallId) String

func (x *AppInstallId) String() string

func (*AppInstallId) Validate

func (m *AppInstallId) Validate() error

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

type AppInstallIdValidationError

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

AppInstallIdValidationError is the validation error returned by AppInstallId.Validate if the designated constraints aren't met.

func (AppInstallIdValidationError) Cause

Cause function returns cause value.

func (AppInstallIdValidationError) Error

Error satisfies the builtin error interface

func (AppInstallIdValidationError) ErrorName

func (e AppInstallIdValidationError) ErrorName() string

ErrorName returns error name.

func (AppInstallIdValidationError) Field

Field function returns field value.

func (AppInstallIdValidationError) Key

Key function returns key value.

func (AppInstallIdValidationError) Reason

Reason function returns reason value.

type Blockhash

type Blockhash struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Blockhash is a raw binary Solana blockchash

func (*Blockhash) Descriptor deprecated

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

Deprecated: Use Blockhash.ProtoReflect.Descriptor instead.

func (*Blockhash) GetValue

func (x *Blockhash) GetValue() []byte

func (*Blockhash) ProtoMessage

func (*Blockhash) ProtoMessage()

func (*Blockhash) ProtoReflect

func (x *Blockhash) ProtoReflect() protoreflect.Message

func (*Blockhash) Reset

func (x *Blockhash) Reset()

func (*Blockhash) String

func (x *Blockhash) String() string

func (*Blockhash) Validate

func (m *Blockhash) Validate() error

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

type BlockhashValidationError

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

BlockhashValidationError is the validation error returned by Blockhash.Validate if the designated constraints aren't met.

func (BlockhashValidationError) Cause

func (e BlockhashValidationError) Cause() error

Cause function returns cause value.

func (BlockhashValidationError) Error

func (e BlockhashValidationError) Error() string

Error satisfies the builtin error interface

func (BlockhashValidationError) ErrorName

func (e BlockhashValidationError) ErrorName() string

ErrorName returns error name.

func (BlockhashValidationError) Field

func (e BlockhashValidationError) Field() string

Field function returns field value.

func (BlockhashValidationError) Key

Key function returns key value.

func (BlockhashValidationError) Reason

func (e BlockhashValidationError) Reason() string

Reason function returns reason value.

type DataContainerId

type DataContainerId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

DataContainerId is a globally unique identifier for a container where a user can store a copy of their data

func (*DataContainerId) Descriptor deprecated

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

Deprecated: Use DataContainerId.ProtoReflect.Descriptor instead.

func (*DataContainerId) GetValue

func (x *DataContainerId) GetValue() []byte

func (*DataContainerId) ProtoMessage

func (*DataContainerId) ProtoMessage()

func (*DataContainerId) ProtoReflect

func (x *DataContainerId) ProtoReflect() protoreflect.Message

func (*DataContainerId) Reset

func (x *DataContainerId) Reset()

func (*DataContainerId) String

func (x *DataContainerId) String() string

func (*DataContainerId) Validate

func (m *DataContainerId) Validate() error

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

type DataContainerIdValidationError

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

DataContainerIdValidationError is the validation error returned by DataContainerId.Validate if the designated constraints aren't met.

func (DataContainerIdValidationError) Cause

Cause function returns cause value.

func (DataContainerIdValidationError) Error

Error satisfies the builtin error interface

func (DataContainerIdValidationError) ErrorName

func (e DataContainerIdValidationError) ErrorName() string

ErrorName returns error name.

func (DataContainerIdValidationError) Field

Field function returns field value.

func (DataContainerIdValidationError) Key

Key function returns key value.

func (DataContainerIdValidationError) Reason

Reason function returns reason value.

type DeviceToken

type DeviceToken struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

DeviceToken is an opaque token used to verify whether a device real

func (*DeviceToken) Descriptor deprecated

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

Deprecated: Use DeviceToken.ProtoReflect.Descriptor instead.

func (*DeviceToken) GetValue

func (x *DeviceToken) GetValue() string

func (*DeviceToken) ProtoMessage

func (*DeviceToken) ProtoMessage()

func (*DeviceToken) ProtoReflect

func (x *DeviceToken) ProtoReflect() protoreflect.Message

func (*DeviceToken) Reset

func (x *DeviceToken) Reset()

func (*DeviceToken) String

func (x *DeviceToken) String() string

func (*DeviceToken) Validate

func (m *DeviceToken) Validate() error

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

type DeviceTokenValidationError

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

DeviceTokenValidationError is the validation error returned by DeviceToken.Validate if the designated constraints aren't met.

func (DeviceTokenValidationError) Cause

Cause function returns cause value.

func (DeviceTokenValidationError) Error

Error satisfies the builtin error interface

func (DeviceTokenValidationError) ErrorName

func (e DeviceTokenValidationError) ErrorName() string

ErrorName returns error name.

func (DeviceTokenValidationError) Field

Field function returns field value.

func (DeviceTokenValidationError) Key

Key function returns key value.

func (DeviceTokenValidationError) Reason

Reason function returns reason value.

type Domain

type Domain struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Domain is a hostname

func (*Domain) Descriptor deprecated

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

Deprecated: Use Domain.ProtoReflect.Descriptor instead.

func (*Domain) GetValue

func (x *Domain) GetValue() string

func (*Domain) ProtoMessage

func (*Domain) ProtoMessage()

func (*Domain) ProtoReflect

func (x *Domain) ProtoReflect() protoreflect.Message

func (*Domain) Reset

func (x *Domain) Reset()

func (*Domain) String

func (x *Domain) String() string

func (*Domain) Validate

func (m *Domain) Validate() error

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

type DomainValidationError

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

DomainValidationError is the validation error returned by Domain.Validate if the designated constraints aren't met.

func (DomainValidationError) Cause

func (e DomainValidationError) Cause() error

Cause function returns cause value.

func (DomainValidationError) Error

func (e DomainValidationError) Error() string

Error satisfies the builtin error interface

func (DomainValidationError) ErrorName

func (e DomainValidationError) ErrorName() string

ErrorName returns error name.

func (DomainValidationError) Field

func (e DomainValidationError) Field() string

Field function returns field value.

func (DomainValidationError) Key

func (e DomainValidationError) Key() bool

Key function returns key value.

func (DomainValidationError) Reason

func (e DomainValidationError) Reason() string

Reason function returns reason value.

type Hash

type Hash struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Hash is a raw binary 32 byte hash value

func (*Hash) Descriptor deprecated

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

Deprecated: Use Hash.ProtoReflect.Descriptor instead.

func (*Hash) GetValue

func (x *Hash) GetValue() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) ProtoReflect

func (x *Hash) ProtoReflect() protoreflect.Message

func (*Hash) Reset

func (x *Hash) Reset()

func (*Hash) String

func (x *Hash) String() string

func (*Hash) Validate

func (m *Hash) Validate() error

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

type HashValidationError

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

HashValidationError is the validation error returned by Hash.Validate if the designated constraints aren't met.

func (HashValidationError) Cause

func (e HashValidationError) Cause() error

Cause function returns cause value.

func (HashValidationError) Error

func (e HashValidationError) Error() string

Error satisfies the builtin error interface

func (HashValidationError) ErrorName

func (e HashValidationError) ErrorName() string

ErrorName returns error name.

func (HashValidationError) Field

func (e HashValidationError) Field() string

Field function returns field value.

func (HashValidationError) Key

func (e HashValidationError) Key() bool

Key function returns key value.

func (HashValidationError) Reason

func (e HashValidationError) Reason() string

Reason function returns reason value.

type InstructionAccount added in v1.8.0

type InstructionAccount struct {
	Account    *SolanaAccountId `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	IsSigner   bool             `protobuf:"varint,2,opt,name=is_signer,json=isSigner,proto3" json:"is_signer,omitempty"`
	IsWritable bool             `protobuf:"varint,3,opt,name=is_writable,json=isWritable,proto3" json:"is_writable,omitempty"`
	// contains filtered or unexported fields
}

InstructionAccount is an account public key used within the context of an instruction.

func (*InstructionAccount) Descriptor deprecated added in v1.8.0

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

Deprecated: Use InstructionAccount.ProtoReflect.Descriptor instead.

func (*InstructionAccount) GetAccount added in v1.8.0

func (x *InstructionAccount) GetAccount() *SolanaAccountId

func (*InstructionAccount) GetIsSigner added in v1.8.0

func (x *InstructionAccount) GetIsSigner() bool

func (*InstructionAccount) GetIsWritable added in v1.8.0

func (x *InstructionAccount) GetIsWritable() bool

func (*InstructionAccount) ProtoMessage added in v1.8.0

func (*InstructionAccount) ProtoMessage()

func (*InstructionAccount) ProtoReflect added in v1.8.0

func (x *InstructionAccount) ProtoReflect() protoreflect.Message

func (*InstructionAccount) Reset added in v1.8.0

func (x *InstructionAccount) Reset()

func (*InstructionAccount) String added in v1.8.0

func (x *InstructionAccount) String() string

func (*InstructionAccount) Validate added in v1.8.0

func (m *InstructionAccount) Validate() error

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

type InstructionAccountValidationError added in v1.8.0

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

InstructionAccountValidationError is the validation error returned by InstructionAccount.Validate if the designated constraints aren't met.

func (InstructionAccountValidationError) Cause added in v1.8.0

Cause function returns cause value.

func (InstructionAccountValidationError) Error added in v1.8.0

Error satisfies the builtin error interface

func (InstructionAccountValidationError) ErrorName added in v1.8.0

ErrorName returns error name.

func (InstructionAccountValidationError) Field added in v1.8.0

Field function returns field value.

func (InstructionAccountValidationError) Key added in v1.8.0

Key function returns key value.

func (InstructionAccountValidationError) Reason added in v1.8.0

Reason function returns reason value.

type IntentId

type IntentId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

IntentId is a client-side generated ID that maps to an intent to perform actions on the blockchain fulfilled by the Code sequencer.

func (*IntentId) Descriptor deprecated

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

Deprecated: Use IntentId.ProtoReflect.Descriptor instead.

func (*IntentId) GetValue

func (x *IntentId) GetValue() []byte

func (*IntentId) ProtoMessage

func (*IntentId) ProtoMessage()

func (*IntentId) ProtoReflect

func (x *IntentId) ProtoReflect() protoreflect.Message

func (*IntentId) Reset

func (x *IntentId) Reset()

func (*IntentId) String

func (x *IntentId) String() string

func (*IntentId) Validate

func (m *IntentId) Validate() error

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

type IntentIdValidationError

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

IntentIdValidationError is the validation error returned by IntentId.Validate if the designated constraints aren't met.

func (IntentIdValidationError) Cause

func (e IntentIdValidationError) Cause() error

Cause function returns cause value.

func (IntentIdValidationError) Error

func (e IntentIdValidationError) Error() string

Error satisfies the builtin error interface

func (IntentIdValidationError) ErrorName

func (e IntentIdValidationError) ErrorName() string

ErrorName returns error name.

func (IntentIdValidationError) Field

func (e IntentIdValidationError) Field() string

Field function returns field value.

func (IntentIdValidationError) Key

func (e IntentIdValidationError) Key() bool

Key function returns key value.

func (IntentIdValidationError) Reason

func (e IntentIdValidationError) Reason() string

Reason function returns reason value.

type Locale added in v1.13.0

type Locale struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Locale is a user locale consisting of a combination of language, script and region

func (*Locale) Descriptor deprecated added in v1.13.0

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

Deprecated: Use Locale.ProtoReflect.Descriptor instead.

func (*Locale) GetValue added in v1.13.0

func (x *Locale) GetValue() string

func (*Locale) ProtoMessage added in v1.13.0

func (*Locale) ProtoMessage()

func (*Locale) ProtoReflect added in v1.13.0

func (x *Locale) ProtoReflect() protoreflect.Message

func (*Locale) Reset added in v1.13.0

func (x *Locale) Reset()

func (*Locale) String added in v1.13.0

func (x *Locale) String() string

func (*Locale) Validate added in v1.13.0

func (m *Locale) Validate() error

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

type LocaleValidationError added in v1.13.0

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

LocaleValidationError is the validation error returned by Locale.Validate if the designated constraints aren't met.

func (LocaleValidationError) Cause added in v1.13.0

func (e LocaleValidationError) Cause() error

Cause function returns cause value.

func (LocaleValidationError) Error added in v1.13.0

func (e LocaleValidationError) Error() string

Error satisfies the builtin error interface

func (LocaleValidationError) ErrorName added in v1.13.0

func (e LocaleValidationError) ErrorName() string

ErrorName returns error name.

func (LocaleValidationError) Field added in v1.13.0

func (e LocaleValidationError) Field() string

Field function returns field value.

func (LocaleValidationError) Key added in v1.13.0

func (e LocaleValidationError) Key() bool

Key function returns key value.

func (LocaleValidationError) Reason added in v1.13.0

func (e LocaleValidationError) Reason() string

Reason function returns reason value.

type PhoneNumber

type PhoneNumber struct {

	// Regex provided by Twilio here: https://www.twilio.com/docs/glossary/what-e164#regex-matching-for-e164
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

PhoneNumber is an E.164 phone number

func (*PhoneNumber) Descriptor deprecated

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

Deprecated: Use PhoneNumber.ProtoReflect.Descriptor instead.

func (*PhoneNumber) GetValue

func (x *PhoneNumber) GetValue() string

func (*PhoneNumber) ProtoMessage

func (*PhoneNumber) ProtoMessage()

func (*PhoneNumber) ProtoReflect

func (x *PhoneNumber) ProtoReflect() protoreflect.Message

func (*PhoneNumber) Reset

func (x *PhoneNumber) Reset()

func (*PhoneNumber) String

func (x *PhoneNumber) String() string

func (*PhoneNumber) Validate

func (m *PhoneNumber) Validate() error

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

type PhoneNumberValidationError

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

PhoneNumberValidationError is the validation error returned by PhoneNumber.Validate if the designated constraints aren't met.

func (PhoneNumberValidationError) Cause

Cause function returns cause value.

func (PhoneNumberValidationError) Error

Error satisfies the builtin error interface

func (PhoneNumberValidationError) ErrorName

func (e PhoneNumberValidationError) ErrorName() string

ErrorName returns error name.

func (PhoneNumberValidationError) Field

Field function returns field value.

func (PhoneNumberValidationError) Key

Key function returns key value.

func (PhoneNumberValidationError) Reason

Reason function returns reason value.

type Relationship

type Relationship struct {

	// Types that are assignable to Type:
	//
	//	*Relationship_Domain
	Type isRelationship_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

Relationship is a set of identifiers that a user can establish a relationship with.

func (*Relationship) Descriptor deprecated

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

Deprecated: Use Relationship.ProtoReflect.Descriptor instead.

func (*Relationship) GetDomain

func (x *Relationship) GetDomain() *Domain

func (*Relationship) GetType

func (m *Relationship) GetType() isRelationship_Type

func (*Relationship) ProtoMessage

func (*Relationship) ProtoMessage()

func (*Relationship) ProtoReflect

func (x *Relationship) ProtoReflect() protoreflect.Message

func (*Relationship) Reset

func (x *Relationship) Reset()

func (*Relationship) String

func (x *Relationship) String() string

func (*Relationship) Validate

func (m *Relationship) Validate() error

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

type RelationshipValidationError

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

RelationshipValidationError is the validation error returned by Relationship.Validate if the designated constraints aren't met.

func (RelationshipValidationError) Cause

Cause function returns cause value.

func (RelationshipValidationError) Error

Error satisfies the builtin error interface

func (RelationshipValidationError) ErrorName

func (e RelationshipValidationError) ErrorName() string

ErrorName returns error name.

func (RelationshipValidationError) Field

Field function returns field value.

func (RelationshipValidationError) Key

Key function returns key value.

func (RelationshipValidationError) Reason

Reason function returns reason value.

type Relationship_Domain

type Relationship_Domain struct {
	Domain *Domain `protobuf:"bytes,1,opt,name=domain,proto3,oneof"`
}

type Request

type Request struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Method  string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Body    []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

Request is a generic wrapper for gRPC requests

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

func (x *Request) GetBody() []byte

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetService

func (x *Request) GetService() string

func (*Request) GetVersion

func (x *Request) GetVersion() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

func (*Request) Validate

func (m *Request) Validate() error

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

type RequestValidationError

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

RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.

func (RequestValidationError) Cause

func (e RequestValidationError) Cause() error

Cause function returns cause value.

func (RequestValidationError) Error

func (e RequestValidationError) Error() string

Error satisfies the builtin error interface

func (RequestValidationError) ErrorName

func (e RequestValidationError) ErrorName() string

ErrorName returns error name.

func (RequestValidationError) Field

func (e RequestValidationError) Field() string

Field function returns field value.

func (RequestValidationError) Key

func (e RequestValidationError) Key() bool

Key function returns key value.

func (RequestValidationError) Reason

func (e RequestValidationError) Reason() string

Reason function returns reason value.

type Response

type Response struct {
	Result  Response_Result `protobuf:"varint,1,opt,name=result,proto3,enum=code.common.v1.Response_Result" json:"result,omitempty"`
	Body    []byte          `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	Message string          `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Response is a generic wrapper for gRPC responses

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (x *Response) GetBody() []byte

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) GetResult

func (x *Response) GetResult() Response_Result

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

func (*Response) Validate

func (m *Response) Validate() error

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

type ResponseValidationError

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

ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.

func (ResponseValidationError) Cause

func (e ResponseValidationError) Cause() error

Cause function returns cause value.

func (ResponseValidationError) Error

func (e ResponseValidationError) Error() string

Error satisfies the builtin error interface

func (ResponseValidationError) ErrorName

func (e ResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ResponseValidationError) Field

func (e ResponseValidationError) Field() string

Field function returns field value.

func (ResponseValidationError) Key

func (e ResponseValidationError) Key() bool

Key function returns key value.

func (ResponseValidationError) Reason

func (e ResponseValidationError) Reason() string

Reason function returns reason value.

type Response_Result

type Response_Result int32
const (
	Response_OK    Response_Result = 0
	Response_ERROR Response_Result = 1
)

func (Response_Result) Descriptor

func (Response_Result) Enum

func (x Response_Result) Enum() *Response_Result

func (Response_Result) EnumDescriptor deprecated

func (Response_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use Response_Result.Descriptor instead.

func (Response_Result) Number

func (Response_Result) String

func (x Response_Result) String() string

func (Response_Result) Type

type Signature

type Signature struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Signature is a raw binary Ed25519 signature

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetValue

func (x *Signature) GetValue() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

func (x *Signature) ProtoReflect() protoreflect.Message

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

func (*Signature) Validate

func (m *Signature) Validate() error

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

type SignatureValidationError

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

SignatureValidationError is the validation error returned by Signature.Validate if the designated constraints aren't met.

func (SignatureValidationError) Cause

func (e SignatureValidationError) Cause() error

Cause function returns cause value.

func (SignatureValidationError) Error

func (e SignatureValidationError) Error() string

Error satisfies the builtin error interface

func (SignatureValidationError) ErrorName

func (e SignatureValidationError) ErrorName() string

ErrorName returns error name.

func (SignatureValidationError) Field

func (e SignatureValidationError) Field() string

Field function returns field value.

func (SignatureValidationError) Key

Key function returns key value.

func (SignatureValidationError) Reason

func (e SignatureValidationError) Reason() string

Reason function returns reason value.

type SolanaAccountId

type SolanaAccountId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

SolanaAccountId is a raw binary Ed25519 public key for a Solana account

func (*SolanaAccountId) Descriptor deprecated

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

Deprecated: Use SolanaAccountId.ProtoReflect.Descriptor instead.

func (*SolanaAccountId) GetValue

func (x *SolanaAccountId) GetValue() []byte

func (*SolanaAccountId) ProtoMessage

func (*SolanaAccountId) ProtoMessage()

func (*SolanaAccountId) ProtoReflect

func (x *SolanaAccountId) ProtoReflect() protoreflect.Message

func (*SolanaAccountId) Reset

func (x *SolanaAccountId) Reset()

func (*SolanaAccountId) String

func (x *SolanaAccountId) String() string

func (*SolanaAccountId) Validate

func (m *SolanaAccountId) Validate() error

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

type SolanaAccountIdValidationError

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

SolanaAccountIdValidationError is the validation error returned by SolanaAccountId.Validate if the designated constraints aren't met.

func (SolanaAccountIdValidationError) Cause

Cause function returns cause value.

func (SolanaAccountIdValidationError) Error

Error satisfies the builtin error interface

func (SolanaAccountIdValidationError) ErrorName

func (e SolanaAccountIdValidationError) ErrorName() string

ErrorName returns error name.

func (SolanaAccountIdValidationError) Field

Field function returns field value.

func (SolanaAccountIdValidationError) Key

Key function returns key value.

func (SolanaAccountIdValidationError) Reason

Reason function returns reason value.

type Transaction

type Transaction struct {

	// Maximum size taken from: https://github.com/solana-labs/solana/blob/39b3ac6a8d29e14faa1de73d8b46d390ad41797b/sdk/src/packet.rs#L9-L13
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Transaction is a raw binary Solana transaction

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetValue

func (x *Transaction) GetValue() []byte

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

func (*Transaction) Validate

func (m *Transaction) Validate() error

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

type TransactionValidationError

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

TransactionValidationError is the validation error returned by Transaction.Validate if the designated constraints aren't met.

func (TransactionValidationError) Cause

Cause function returns cause value.

func (TransactionValidationError) Error

Error satisfies the builtin error interface

func (TransactionValidationError) ErrorName

func (e TransactionValidationError) ErrorName() string

ErrorName returns error name.

func (TransactionValidationError) Field

Field function returns field value.

func (TransactionValidationError) Key

Key function returns key value.

func (TransactionValidationError) Reason

Reason function returns reason value.

type UUID added in v1.12.0

type UUID struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

UUID is a 16 byte UUID value

func (*UUID) Descriptor deprecated added in v1.12.0

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

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetValue added in v1.12.0

func (x *UUID) GetValue() []byte

func (*UUID) ProtoMessage added in v1.12.0

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect added in v1.12.0

func (x *UUID) ProtoReflect() protoreflect.Message

func (*UUID) Reset added in v1.12.0

func (x *UUID) Reset()

func (*UUID) String added in v1.12.0

func (x *UUID) String() string

func (*UUID) Validate added in v1.12.0

func (m *UUID) Validate() error

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

type UUIDValidationError added in v1.12.0

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

UUIDValidationError is the validation error returned by UUID.Validate if the designated constraints aren't met.

func (UUIDValidationError) Cause added in v1.12.0

func (e UUIDValidationError) Cause() error

Cause function returns cause value.

func (UUIDValidationError) Error added in v1.12.0

func (e UUIDValidationError) Error() string

Error satisfies the builtin error interface

func (UUIDValidationError) ErrorName added in v1.12.0

func (e UUIDValidationError) ErrorName() string

ErrorName returns error name.

func (UUIDValidationError) Field added in v1.12.0

func (e UUIDValidationError) Field() string

Field function returns field value.

func (UUIDValidationError) Key added in v1.12.0

func (e UUIDValidationError) Key() bool

Key function returns key value.

func (UUIDValidationError) Reason added in v1.12.0

func (e UUIDValidationError) Reason() string

Reason function returns reason value.

type UserId

type UserId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

UserId is a globally unique identifier for a user within Code

Note: Users outside Code are modelled as relationship accounts

func (*UserId) Descriptor deprecated

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

Deprecated: Use UserId.ProtoReflect.Descriptor instead.

func (*UserId) GetValue

func (x *UserId) GetValue() []byte

func (*UserId) ProtoMessage

func (*UserId) ProtoMessage()

func (*UserId) ProtoReflect

func (x *UserId) ProtoReflect() protoreflect.Message

func (*UserId) Reset

func (x *UserId) Reset()

func (*UserId) String

func (x *UserId) String() string

func (*UserId) Validate

func (m *UserId) Validate() error

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

type UserIdValidationError

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

UserIdValidationError is the validation error returned by UserId.Validate if the designated constraints aren't met.

func (UserIdValidationError) Cause

func (e UserIdValidationError) Cause() error

Cause function returns cause value.

func (UserIdValidationError) Error

func (e UserIdValidationError) Error() string

Error satisfies the builtin error interface

func (UserIdValidationError) ErrorName

func (e UserIdValidationError) ErrorName() string

ErrorName returns error name.

func (UserIdValidationError) Field

func (e UserIdValidationError) Field() string

Field function returns field value.

func (UserIdValidationError) Key

func (e UserIdValidationError) Key() bool

Key function returns key value.

func (UserIdValidationError) Reason

func (e UserIdValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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