service

package
v0.0.0-...-ec6187d Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocMsgBindService

type DocMsgBindService struct {
	ServiceName string `bson:"service_name"`
	Provider    string `bson:"provider"`
	Deposit     Coins  `bson:"deposit"`
	Pricing     string `bson:"pricing"`
	QoS         int64  `bson:"qos"`
	Owner       string `bson:"owner"`
	Options     string `bson:"options"`
}

func (*DocMsgBindService) BuildMsg

func (m *DocMsgBindService) BuildMsg(v interface{})

func (*DocMsgBindService) GetType

func (m *DocMsgBindService) GetType() string

func (*DocMsgBindService) HandleTxMsg

func (m *DocMsgBindService) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgCallService

type DocMsgCallService struct {
	ServiceName       string       `bson:"service_name"`
	Providers         []string     `bson:"providers"`
	Consumer          string       `bson:"consumer"`
	Input             string       `bson:"input"`
	ServiceFeeCap     models.Coins `bson:"service_fee_cap"`
	Timeout           int64        `bson:"timeout"`
	Repeated          bool         `bson:"repeated"`
	RepeatedFrequency int64        `bson:"repeated_frequency"`
	RepeatedTotal     int64        `bson:"repeated_total"`
}

func (*DocMsgCallService) BuildMsg

func (m *DocMsgCallService) BuildMsg(msg interface{})

func (*DocMsgCallService) GetType

func (m *DocMsgCallService) GetType() string

func (*DocMsgCallService) HandleTxMsg

func (m *DocMsgCallService) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgDefineService

type DocMsgDefineService struct {
	Name              string   `bson:"name" yaml:"name"`
	Description       string   `bson:"description" yaml:"description"`
	Tags              []string `bson:"tags" yaml:"tags"`
	Author            string   `bson:"author" yaml:"author"`
	AuthorDescription string   `bson:"author_description" yaml:"author_description"`
	Schemas           string   `bson:"schemas"`
}

func (*DocMsgDefineService) BuildMsg

func (m *DocMsgDefineService) BuildMsg(v interface{})

func (*DocMsgDefineService) GetType

func (m *DocMsgDefineService) GetType() string

func (*DocMsgDefineService) HandleTxMsg

func (m *DocMsgDefineService) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgDisableServiceBinding

type DocMsgDisableServiceBinding struct {
	ServiceName string `bson:"service_name" yaml:"service_name"`
	Provider    string `bson:"provider" yaml:"provider"`
	Owner       string `bson:"owner" yaml:"owner"`
}

func (*DocMsgDisableServiceBinding) BuildMsg

func (m *DocMsgDisableServiceBinding) BuildMsg(v interface{})

func (*DocMsgDisableServiceBinding) GetType

func (m *DocMsgDisableServiceBinding) GetType() string

func (*DocMsgDisableServiceBinding) HandleTxMsg

func (m *DocMsgDisableServiceBinding) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgEnableServiceBinding

type DocMsgEnableServiceBinding struct {
	ServiceName string       `bson:"service_name" yaml:"service_name"`
	Provider    string       `bson:"provider" yaml:"provider"`
	Deposit     models.Coins `bson:"deposit" yaml:"deposit"`
	Owner       string       `bson:"owner" yaml:"owner"`
}

func (*DocMsgEnableServiceBinding) BuildMsg

func (m *DocMsgEnableServiceBinding) BuildMsg(v interface{})

func (*DocMsgEnableServiceBinding) GetType

func (m *DocMsgEnableServiceBinding) GetType() string

func (*DocMsgEnableServiceBinding) HandleTxMsg

func (m *DocMsgEnableServiceBinding) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgKillRequestContext

type DocMsgKillRequestContext struct {
	RequestContextID string `bson:"request_context_id" yaml:"request_context_id"`
	Consumer         string `bson:"consumer" yaml:"consumer"`
}

func (*DocMsgKillRequestContext) BuildMsg

func (m *DocMsgKillRequestContext) BuildMsg(v interface{})

func (*DocMsgKillRequestContext) GetType

func (m *DocMsgKillRequestContext) GetType() string

func (*DocMsgKillRequestContext) HandleTxMsg

func (m *DocMsgKillRequestContext) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgPauseRequestContext

type DocMsgPauseRequestContext struct {
	RequestContextID string `bson:"request_context_id" yaml:"request_context_id"`
	Consumer         string `bson:"consumer" yaml:"consumer"`
}

func (*DocMsgPauseRequestContext) BuildMsg

func (m *DocMsgPauseRequestContext) BuildMsg(v interface{})

func (*DocMsgPauseRequestContext) GetType

func (m *DocMsgPauseRequestContext) GetType() string

func (*DocMsgPauseRequestContext) HandleTxMsg

func (m *DocMsgPauseRequestContext) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgRefundServiceDeposit

type DocMsgRefundServiceDeposit struct {
	ServiceName string `bson:"service_name" yaml:"service_name"`
	Provider    string `bson:"provider" yaml:"provider"`
	Owner       string `bson:"owner" yaml:"owner"`
}

func (*DocMsgRefundServiceDeposit) BuildMsg

func (m *DocMsgRefundServiceDeposit) BuildMsg(v interface{})

func (*DocMsgRefundServiceDeposit) GetType

func (m *DocMsgRefundServiceDeposit) GetType() string

func (*DocMsgRefundServiceDeposit) HandleTxMsg

func (m *DocMsgRefundServiceDeposit) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgServiceResponse

type DocMsgServiceResponse struct {
	RequestID string `bson:"request_id" yaml:"request_id"`
	Provider  string `bson:"provider" yaml:"provider"`
	Output    string `bson:"output" yaml:"output"`
	Result    string `bson:"result"`
}

func (*DocMsgServiceResponse) BuildMsg

func (m *DocMsgServiceResponse) BuildMsg(msg interface{})

func (*DocMsgServiceResponse) GetType

func (m *DocMsgServiceResponse) GetType() string

func (*DocMsgServiceResponse) HandleTxMsg

func (m *DocMsgServiceResponse) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgSetWithdrawAddress

type DocMsgSetWithdrawAddress struct {
	Owner           string `bson:"owner" yaml:"owner"`
	WithdrawAddress string `bson:"withdraw_address" yaml:"withdraw_address"`
}

func (*DocMsgSetWithdrawAddress) BuildMsg

func (m *DocMsgSetWithdrawAddress) BuildMsg(v interface{})

func (*DocMsgSetWithdrawAddress) GetType

func (m *DocMsgSetWithdrawAddress) GetType() string

func (*DocMsgSetWithdrawAddress) HandleTxMsg

func (m *DocMsgSetWithdrawAddress) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgStartRequestContext

type DocMsgStartRequestContext struct {
	RequestContextID string `bson:"request_context_id" yaml:"request_context_id"`
	Consumer         string `bson:"consumer" yaml:"consumer"`
}

func (*DocMsgStartRequestContext) BuildMsg

func (m *DocMsgStartRequestContext) BuildMsg(v interface{})

func (*DocMsgStartRequestContext) GetType

func (m *DocMsgStartRequestContext) GetType() string

func (*DocMsgStartRequestContext) HandleTxMsg

func (m *DocMsgStartRequestContext) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgUpdateRequestContext

type DocMsgUpdateRequestContext struct {
	RequestContextID  string        `bson:"request_context_id" yaml:"request_context_id"`
	Providers         []string      `bson:"providers" yaml:"providers"`
	Consumer          string        `bson:"consumer" yaml:"consumer"`
	ServiceFeeCap     []models.Coin `bson:"service_fee_cap" yaml:"service_fee_cap"`
	Timeout           int64         `bson:"timeout" yaml:"timeout"`
	RepeatedFrequency int64         `bson:"repeated_frequency" yaml:"repeated_frequency"`
	RepeatedTotal     int64         `bson:"repeated_total" yaml:"repeated_total"`
}

func (*DocMsgUpdateRequestContext) BuildMsg

func (m *DocMsgUpdateRequestContext) BuildMsg(v interface{})

func (*DocMsgUpdateRequestContext) GetType

func (m *DocMsgUpdateRequestContext) GetType() string

func (*DocMsgUpdateRequestContext) HandleTxMsg

func (m *DocMsgUpdateRequestContext) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgUpdateServiceBinding

type DocMsgUpdateServiceBinding struct {
	ServiceName string       `bson:"service_name" yaml:"service_name"`
	Provider    string       `bson:"provider" yaml:"provider"`
	Deposit     models.Coins `bson:"deposit" yaml:"deposit"`
	Pricing     string       `bson:"pricing" yaml:"pricing"`
	QoS         int64        `bson:"qos" yaml:"qos"`
	Owner       string       `bson:"owner" yaml:"owner"`
	Options     string       `bson:"options"`
}

func (*DocMsgUpdateServiceBinding) BuildMsg

func (m *DocMsgUpdateServiceBinding) BuildMsg(v interface{})

func (*DocMsgUpdateServiceBinding) GetType

func (m *DocMsgUpdateServiceBinding) GetType() string

func (*DocMsgUpdateServiceBinding) HandleTxMsg

func (m *DocMsgUpdateServiceBinding) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgWithdrawEarnedFees

type DocMsgWithdrawEarnedFees struct {
	Owner    string
	Provider string
}

func (*DocMsgWithdrawEarnedFees) BuildMsg

func (m *DocMsgWithdrawEarnedFees) BuildMsg(v interface{})

func (*DocMsgWithdrawEarnedFees) GetType

func (m *DocMsgWithdrawEarnedFees) GetType() string

func (*DocMsgWithdrawEarnedFees) HandleTxMsg

func (m *DocMsgWithdrawEarnedFees) HandleTxMsg(v SdkMsg) MsgDocInfo

type ServiceClient

type ServiceClient struct {
}

func NewClient

func NewClient() ServiceClient

func (ServiceClient) HandleTxMsg

func (service ServiceClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

Jump to

Keyboard shortcuts

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