servicesv1

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Msg_CreateService_FullMethodName            = "/milkyway.services.v1.Msg/CreateService"
	Msg_UpdateService_FullMethodName            = "/milkyway.services.v1.Msg/UpdateService"
	Msg_ActivateService_FullMethodName          = "/milkyway.services.v1.Msg/ActivateService"
	Msg_DeactivateService_FullMethodName        = "/milkyway.services.v1.Msg/DeactivateService"
	Msg_DeleteService_FullMethodName            = "/milkyway.services.v1.Msg/DeleteService"
	Msg_TransferServiceOwnership_FullMethodName = "/milkyway.services.v1.Msg/TransferServiceOwnership"
	Msg_UpdateParams_FullMethodName             = "/milkyway.services.v1.Msg/UpdateParams"
)
View Source
const (
	Query_Service_FullMethodName  = "/milkyway.services.v1.Query/Service"
	Query_Services_FullMethodName = "/milkyway.services.v1.Query/Services"
	Query_Params_FullMethodName   = "/milkyway.services.v1.Query/Params"
)

Variables

View Source
var (
	ServiceStatus_name = map[int32]string{
		0: "SERVICE_STATUS_UNSPECIFIED",
		1: "SERVICE_STATUS_CREATED",
		2: "SERVICE_STATUS_ACTIVE",
		3: "SERVICE_STATUS_INACTIVE",
	}
	ServiceStatus_value = map[string]int32{
		"SERVICE_STATUS_UNSPECIFIED": 0,
		"SERVICE_STATUS_CREATED":     1,
		"SERVICE_STATUS_ACTIVE":      2,
		"SERVICE_STATUS_INACTIVE":    3,
	}
)

Enum value maps for ServiceStatus.

View Source
var File_milkyway_services_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_milkyway_services_v1_messages_proto protoreflect.FileDescriptor
View Source
var File_milkyway_services_v1_models_proto protoreflect.FileDescriptor
View Source
var File_milkyway_services_v1_params_proto protoreflect.FileDescriptor
View Source
var File_milkyway_services_v1_query_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "milkyway.services.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateService",
			Handler:    _Msg_CreateService_Handler,
		},
		{
			MethodName: "UpdateService",
			Handler:    _Msg_UpdateService_Handler,
		},
		{
			MethodName: "ActivateService",
			Handler:    _Msg_ActivateService_Handler,
		},
		{
			MethodName: "DeactivateService",
			Handler:    _Msg_DeactivateService_Handler,
		},
		{
			MethodName: "DeleteService",
			Handler:    _Msg_DeleteService_Handler,
		},
		{
			MethodName: "TransferServiceOwnership",
			Handler:    _Msg_TransferServiceOwnership_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "milkyway/services/v1/messages.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "milkyway.services.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Service",
			Handler:    _Query_Service_Handler,
		},
		{
			MethodName: "Services",
			Handler:    _Query_Services_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "milkyway/services/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type GenesisState

type GenesisState struct {

	// Params defines the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// Services defines the list of services.
	Services []*Service `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty"`
	// NextServiceID defines the ID that will be assigned to the
	// next service that gets created.
	NextServiceId uint32 `protobuf:"varint,3,opt,name=next_service_id,json=nextServiceId,proto3" json:"next_service_id,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the services module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetNextServiceId

func (x *GenesisState) GetNextServiceId() uint32

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetServices

func (x *GenesisState) GetServices() []*Service

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgActivateService

type MsgActivateService struct {

	// Sender is the address of the user that wants to activate the service
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// ServiceID represents the ID of the service to be activated
	ServiceId uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// contains filtered or unexported fields
}

MsgActivateService defines the message structure for the ActivateService gRPC

func (*MsgActivateService) Descriptor deprecated

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

Deprecated: Use MsgActivateService.ProtoReflect.Descriptor instead.

func (*MsgActivateService) GetSender

func (x *MsgActivateService) GetSender() string

func (*MsgActivateService) GetServiceId

func (x *MsgActivateService) GetServiceId() uint32

func (*MsgActivateService) ProtoMessage

func (*MsgActivateService) ProtoMessage()

func (*MsgActivateService) ProtoReflect

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

func (*MsgActivateService) Reset

func (x *MsgActivateService) Reset()

func (*MsgActivateService) String

func (x *MsgActivateService) String() string

type MsgActivateServiceResponse

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

MsgActivateServiceResponse is the return value of MsgActivateService.

func (*MsgActivateServiceResponse) Descriptor deprecated

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

Deprecated: Use MsgActivateServiceResponse.ProtoReflect.Descriptor instead.

func (*MsgActivateServiceResponse) ProtoMessage

func (*MsgActivateServiceResponse) ProtoMessage()

func (*MsgActivateServiceResponse) ProtoReflect

func (*MsgActivateServiceResponse) Reset

func (x *MsgActivateServiceResponse) Reset()

func (*MsgActivateServiceResponse) String

func (x *MsgActivateServiceResponse) String() string

type MsgClient

type MsgClient interface {
	// CreateService defines the operation for registering a new service.
	CreateService(ctx context.Context, in *MsgCreateService, opts ...grpc.CallOption) (*MsgCreateServiceResponse, error)
	// UpdateService defines the operation for updating an existing service.
	UpdateService(ctx context.Context, in *MsgUpdateService, opts ...grpc.CallOption) (*MsgUpdateServiceResponse, error)
	// ActivateService defines the operation for activating an existing
	// service.
	ActivateService(ctx context.Context, in *MsgActivateService, opts ...grpc.CallOption) (*MsgActivateServiceResponse, error)
	// DeactivateService defines the operation for deactivating an existing
	// service.
	DeactivateService(ctx context.Context, in *MsgDeactivateService, opts ...grpc.CallOption) (*MsgDeactivateServiceResponse, error)
	// DeleteService defines the operation for deleting an existing service
	// that has been deactivated.
	DeleteService(ctx context.Context, in *MsgDeleteService, opts ...grpc.CallOption) (*MsgDeleteServiceResponse, error)
	// TransferServiceOwnership defines the operation for transferring the
	// ownership of a service to another account.
	TransferServiceOwnership(ctx context.Context, in *MsgTransferServiceOwnership, opts ...grpc.CallOption) (*MsgTransferServiceOwnershipResponse, error)
	// UpdateParams defines a (governance) operation for updating the module
	// parameters.
	// The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Msg defines the services module's gRPC message service.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCreateService

type MsgCreateService struct {

	// Sender is the address of the user registering the service
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Name is the name of the service
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description is the description of the service
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Website is the website of the service
	Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"`
	// PictureURL is the URL of the service picture
	PictureUrl string `protobuf:"bytes,5,opt,name=picture_url,json=pictureUrl,proto3" json:"picture_url,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateServiceResponse defines the message structure for the CreateService gRPC service method. It allows an account to register a new service that can be validated by operators. It requires a sender address as well as the details of the service to be registered.

func (*MsgCreateService) Descriptor deprecated

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

Deprecated: Use MsgCreateService.ProtoReflect.Descriptor instead.

func (*MsgCreateService) GetDescription

func (x *MsgCreateService) GetDescription() string

func (*MsgCreateService) GetName

func (x *MsgCreateService) GetName() string

func (*MsgCreateService) GetPictureUrl

func (x *MsgCreateService) GetPictureUrl() string

func (*MsgCreateService) GetSender

func (x *MsgCreateService) GetSender() string

func (*MsgCreateService) GetWebsite

func (x *MsgCreateService) GetWebsite() string

func (*MsgCreateService) ProtoMessage

func (*MsgCreateService) ProtoMessage()

func (*MsgCreateService) ProtoReflect

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

func (*MsgCreateService) Reset

func (x *MsgCreateService) Reset()

func (*MsgCreateService) String

func (x *MsgCreateService) String() string

type MsgCreateServiceResponse

type MsgCreateServiceResponse struct {

	// NewServiceID is the ID of the newly registered service
	NewServiceId uint32 `protobuf:"varint,1,opt,name=new_service_id,json=newServiceId,proto3" json:"new_service_id,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateServiceResponse is the return value of MsgCreateService. It returns the newly created service ID.

func (*MsgCreateServiceResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateServiceResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateServiceResponse) GetNewServiceId

func (x *MsgCreateServiceResponse) GetNewServiceId() uint32

func (*MsgCreateServiceResponse) ProtoMessage

func (*MsgCreateServiceResponse) ProtoMessage()

func (*MsgCreateServiceResponse) ProtoReflect

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

func (*MsgCreateServiceResponse) Reset

func (x *MsgCreateServiceResponse) Reset()

func (*MsgCreateServiceResponse) String

func (x *MsgCreateServiceResponse) String() string

type MsgDeactivateService

type MsgDeactivateService struct {

	// Sender is the address of the user that wants to deactivate the service
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// ServiceID represents the ID of the service to be deactivated
	ServiceId uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// contains filtered or unexported fields
}

MsgDeactivateService defines the message structure for the DeactivateService gRPC service method. It allows the service admin to deactivate an existing service.

func (*MsgDeactivateService) Descriptor deprecated

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

Deprecated: Use MsgDeactivateService.ProtoReflect.Descriptor instead.

func (*MsgDeactivateService) GetSender

func (x *MsgDeactivateService) GetSender() string

func (*MsgDeactivateService) GetServiceId

func (x *MsgDeactivateService) GetServiceId() uint32

func (*MsgDeactivateService) ProtoMessage

func (*MsgDeactivateService) ProtoMessage()

func (*MsgDeactivateService) ProtoReflect

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

func (*MsgDeactivateService) Reset

func (x *MsgDeactivateService) Reset()

func (*MsgDeactivateService) String

func (x *MsgDeactivateService) String() string

type MsgDeactivateServiceResponse

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

MsgDeactivateServiceResponse is the return value of MsgDeactivateService.

func (*MsgDeactivateServiceResponse) Descriptor deprecated

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

Deprecated: Use MsgDeactivateServiceResponse.ProtoReflect.Descriptor instead.

func (*MsgDeactivateServiceResponse) ProtoMessage

func (*MsgDeactivateServiceResponse) ProtoMessage()

func (*MsgDeactivateServiceResponse) ProtoReflect

func (*MsgDeactivateServiceResponse) Reset

func (x *MsgDeactivateServiceResponse) Reset()

func (*MsgDeactivateServiceResponse) String

type MsgDeleteService added in v1.3.0

type MsgDeleteService struct {

	// Sender is the address of the user that wants to delete the service
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// ServiceID represents the ID of the service to be deleted
	ServiceId uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// contains filtered or unexported fields
}

MsgDeleteService defines the message structure for the DeleteService gRPC service method. It allows the service admin to delete a previously deactivated service

func (*MsgDeleteService) Descriptor deprecated added in v1.3.0

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

Deprecated: Use MsgDeleteService.ProtoReflect.Descriptor instead.

func (*MsgDeleteService) GetSender added in v1.3.0

func (x *MsgDeleteService) GetSender() string

func (*MsgDeleteService) GetServiceId added in v1.3.0

func (x *MsgDeleteService) GetServiceId() uint32

func (*MsgDeleteService) ProtoMessage added in v1.3.0

func (*MsgDeleteService) ProtoMessage()

func (*MsgDeleteService) ProtoReflect added in v1.3.0

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

func (*MsgDeleteService) Reset added in v1.3.0

func (x *MsgDeleteService) Reset()

func (*MsgDeleteService) String added in v1.3.0

func (x *MsgDeleteService) String() string

type MsgDeleteServiceResponse added in v1.3.0

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

MsgDeleteServiceResponse is the return value of MsgDeleteService.

func (*MsgDeleteServiceResponse) Descriptor deprecated added in v1.3.0

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

Deprecated: Use MsgDeleteServiceResponse.ProtoReflect.Descriptor instead.

func (*MsgDeleteServiceResponse) ProtoMessage added in v1.3.0

func (*MsgDeleteServiceResponse) ProtoMessage()

func (*MsgDeleteServiceResponse) ProtoReflect added in v1.3.0

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

func (*MsgDeleteServiceResponse) Reset added in v1.3.0

func (x *MsgDeleteServiceResponse) Reset()

func (*MsgDeleteServiceResponse) String added in v1.3.0

func (x *MsgDeleteServiceResponse) String() string

type MsgServer

type MsgServer interface {
	// CreateService defines the operation for registering a new service.
	CreateService(context.Context, *MsgCreateService) (*MsgCreateServiceResponse, error)
	// UpdateService defines the operation for updating an existing service.
	UpdateService(context.Context, *MsgUpdateService) (*MsgUpdateServiceResponse, error)
	// ActivateService defines the operation for activating an existing
	// service.
	ActivateService(context.Context, *MsgActivateService) (*MsgActivateServiceResponse, error)
	// DeactivateService defines the operation for deactivating an existing
	// service.
	DeactivateService(context.Context, *MsgDeactivateService) (*MsgDeactivateServiceResponse, error)
	// DeleteService defines the operation for deleting an existing service
	// that has been deactivated.
	DeleteService(context.Context, *MsgDeleteService) (*MsgDeleteServiceResponse, error)
	// TransferServiceOwnership defines the operation for transferring the
	// ownership of a service to another account.
	TransferServiceOwnership(context.Context, *MsgTransferServiceOwnership) (*MsgTransferServiceOwnershipResponse, error)
	// UpdateParams defines a (governance) operation for updating the module
	// parameters.
	// The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.

Msg defines the services module's gRPC message service.

type MsgTransferServiceOwnership

type MsgTransferServiceOwnership struct {

	// Sender is the address of the user transferring the ownership
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// ServiceID represents the ID of the service to transfer ownership
	ServiceId uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// NewAdmin is the address of the new admin of the service
	NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// contains filtered or unexported fields
}

MsgTransferServiceOwnership defines the message structure for the TransferServiceOwnership gRPC service method. It allows a service admin to transfer the ownership of the service to another account.

func (*MsgTransferServiceOwnership) Descriptor deprecated

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

Deprecated: Use MsgTransferServiceOwnership.ProtoReflect.Descriptor instead.

func (*MsgTransferServiceOwnership) GetNewAdmin

func (x *MsgTransferServiceOwnership) GetNewAdmin() string

func (*MsgTransferServiceOwnership) GetSender

func (x *MsgTransferServiceOwnership) GetSender() string

func (*MsgTransferServiceOwnership) GetServiceId

func (x *MsgTransferServiceOwnership) GetServiceId() uint32

func (*MsgTransferServiceOwnership) ProtoMessage

func (*MsgTransferServiceOwnership) ProtoMessage()

func (*MsgTransferServiceOwnership) ProtoReflect

func (*MsgTransferServiceOwnership) Reset

func (x *MsgTransferServiceOwnership) Reset()

func (*MsgTransferServiceOwnership) String

func (x *MsgTransferServiceOwnership) String() string

type MsgTransferServiceOwnershipResponse

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

MsgTransferServiceOwnershipResponse is the return value of MsgTransferServiceOwnership.

func (*MsgTransferServiceOwnershipResponse) Descriptor deprecated

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

Deprecated: Use MsgTransferServiceOwnershipResponse.ProtoReflect.Descriptor instead.

func (*MsgTransferServiceOwnershipResponse) ProtoMessage

func (*MsgTransferServiceOwnershipResponse) ProtoMessage()

func (*MsgTransferServiceOwnershipResponse) ProtoReflect

func (*MsgTransferServiceOwnershipResponse) Reset

func (*MsgTransferServiceOwnershipResponse) String

type MsgUpdateParams

type MsgUpdateParams struct {

	// Authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// Params define the parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgDeactivateService defines the message structure for the UpdateParams gRPC service method. It allows the authority to update the module parameters.

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

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

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

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

MsgDeactivateServiceResponse is the return value of MsgUpdateParams.

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

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

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type MsgUpdateService

type MsgUpdateService struct {

	// Sender is the address of the user updating the service
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// ID represents the ID of the service to be updated
	ServiceId uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Name is the new name of the service.
	// If it shouldn't be changed, use [do-not-modify] instead.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Description is the new description of the service.
	// If it shouldn't be changed, use [do-not-modify] instead.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Website is the new website of the service.
	// If it shouldn't be changed, use [do-not-modify] instead.
	Website string `protobuf:"bytes,5,opt,name=website,proto3" json:"website,omitempty"`
	// PictureURL is the new URL of the service picture.
	// If it shouldn't be changed, use [do-not-modify] instead.
	PictureUrl string `protobuf:"bytes,6,opt,name=picture_url,json=pictureUrl,proto3" json:"picture_url,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateService defines the message structure for the UpdateService gRPC service method. It allows the service admin to update the details of an existing service.

func (*MsgUpdateService) Descriptor deprecated

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

Deprecated: Use MsgUpdateService.ProtoReflect.Descriptor instead.

func (*MsgUpdateService) GetDescription

func (x *MsgUpdateService) GetDescription() string

func (*MsgUpdateService) GetName

func (x *MsgUpdateService) GetName() string

func (*MsgUpdateService) GetPictureUrl

func (x *MsgUpdateService) GetPictureUrl() string

func (*MsgUpdateService) GetSender

func (x *MsgUpdateService) GetSender() string

func (*MsgUpdateService) GetServiceId

func (x *MsgUpdateService) GetServiceId() uint32

func (*MsgUpdateService) GetWebsite

func (x *MsgUpdateService) GetWebsite() string

func (*MsgUpdateService) ProtoMessage

func (*MsgUpdateService) ProtoMessage()

func (*MsgUpdateService) ProtoReflect

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

func (*MsgUpdateService) Reset

func (x *MsgUpdateService) Reset()

func (*MsgUpdateService) String

func (x *MsgUpdateService) String() string

type MsgUpdateServiceResponse

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

MsgUpdateServiceResponse is the return value of MsgUpdateService.

func (*MsgUpdateServiceResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateServiceResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateServiceResponse) ProtoMessage

func (*MsgUpdateServiceResponse) ProtoMessage()

func (*MsgUpdateServiceResponse) ProtoReflect

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

func (*MsgUpdateServiceResponse) Reset

func (x *MsgUpdateServiceResponse) Reset()

func (*MsgUpdateServiceResponse) String

func (x *MsgUpdateServiceResponse) String() string

type Params

type Params struct {

	// ServiceRegistrationFee defines the fee to register a new service.
	// The fee is drawn from the MsgRegisterService sender's account,
	// and transferred to the community pool.
	ServiceRegistrationFee []*v1beta1.Coin `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetServiceRegistrationFee

func (x *Params) GetServiceRegistrationFee() []*v1beta1.Coin

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryClient

type QueryClient interface {
	// Service defines a gRPC query method that returns the service by the given
	// service id.
	Service(ctx context.Context, in *QueryServiceRequest, opts ...grpc.CallOption) (*QueryServiceResponse, error)
	// Services defines a gRPC query method that returns the actively validates
	// services currently registered in the module.
	Services(ctx context.Context, in *QueryServicesRequest, opts ...grpc.CallOption) (*QueryServicesResponse, error)
	// Params defines a gRPC query method that returns the parameters of the
	// module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Query defines the gRPC querier service.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryParamsRequest

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

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

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

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

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

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer

type QueryServer interface {
	// Service defines a gRPC query method that returns the service by the given
	// service id.
	Service(context.Context, *QueryServiceRequest) (*QueryServiceResponse, error)
	// Services defines a gRPC query method that returns the actively validates
	// services currently registered in the module.
	Services(context.Context, *QueryServicesRequest) (*QueryServicesResponse, error)
	// Params defines a gRPC query method that returns the parameters of the
	// module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.

Query defines the gRPC querier service.

type QueryServiceRequest

type QueryServiceRequest struct {

	// ServiceID is the ID of the service to query
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// contains filtered or unexported fields
}

QueryServiceRequest is the request type for the Query/Service RPC method.

func (*QueryServiceRequest) Descriptor deprecated

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

Deprecated: Use QueryServiceRequest.ProtoReflect.Descriptor instead.

func (*QueryServiceRequest) GetServiceId

func (x *QueryServiceRequest) GetServiceId() uint32

func (*QueryServiceRequest) ProtoMessage

func (*QueryServiceRequest) ProtoMessage()

func (*QueryServiceRequest) ProtoReflect

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

func (*QueryServiceRequest) Reset

func (x *QueryServiceRequest) Reset()

func (*QueryServiceRequest) String

func (x *QueryServiceRequest) String() string

type QueryServiceResponse

type QueryServiceResponse struct {
	Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

QueryServiceResponse is the response type for the Query/Service RPC method.

func (*QueryServiceResponse) Descriptor deprecated

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

Deprecated: Use QueryServiceResponse.ProtoReflect.Descriptor instead.

func (*QueryServiceResponse) GetService

func (x *QueryServiceResponse) GetService() *Service

func (*QueryServiceResponse) ProtoMessage

func (*QueryServiceResponse) ProtoMessage()

func (*QueryServiceResponse) ProtoReflect

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

func (*QueryServiceResponse) Reset

func (x *QueryServiceResponse) Reset()

func (*QueryServiceResponse) String

func (x *QueryServiceResponse) String() string

type QueryServicesRequest

type QueryServicesRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryServicesRequest is the request type for the Query/Services RPC method.

func (*QueryServicesRequest) Descriptor deprecated

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

Deprecated: Use QueryServicesRequest.ProtoReflect.Descriptor instead.

func (*QueryServicesRequest) GetPagination

func (x *QueryServicesRequest) GetPagination() *v1beta1.PageRequest

func (*QueryServicesRequest) ProtoMessage

func (*QueryServicesRequest) ProtoMessage()

func (*QueryServicesRequest) ProtoReflect

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

func (*QueryServicesRequest) Reset

func (x *QueryServicesRequest) Reset()

func (*QueryServicesRequest) String

func (x *QueryServicesRequest) String() string

type QueryServicesResponse

type QueryServicesResponse struct {

	// Services services defines the list of actively validates services
	Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// Pagination defines the pagination response
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryServicesResponse is the response type for the Query/Services RPC method.

func (*QueryServicesResponse) Descriptor deprecated

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

Deprecated: Use QueryServicesResponse.ProtoReflect.Descriptor instead.

func (*QueryServicesResponse) GetPagination

func (x *QueryServicesResponse) GetPagination() *v1beta1.PageResponse

func (*QueryServicesResponse) GetServices

func (x *QueryServicesResponse) GetServices() []*Service

func (*QueryServicesResponse) ProtoMessage

func (*QueryServicesResponse) ProtoMessage()

func (*QueryServicesResponse) ProtoReflect

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

func (*QueryServicesResponse) Reset

func (x *QueryServicesResponse) Reset()

func (*QueryServicesResponse) String

func (x *QueryServicesResponse) String() string

type Service

type Service struct {

	// ID is the unique identifier of the service
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Status is the status of the service
	Status ServiceStatus `protobuf:"varint,2,opt,name=status,proto3,enum=milkyway.services.v1.ServiceStatus" json:"status,omitempty"`
	// Admin is the address of the user that has administrative power over the
	// service
	Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// Name is the name of the service
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description is the description of the service
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Website is the website of the service
	Website string `protobuf:"bytes,6,opt,name=website,proto3" json:"website,omitempty"`
	// PictureURL is the URL of the picture of the service
	PictureUrl string `protobuf:"bytes,7,opt,name=picture_url,json=pictureUrl,proto3" json:"picture_url,omitempty"`
	// Address is the address of the account associated with the service.
	// This will be used in order to store all the tokens that are delegated to
	// this service by various users.
	Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"`
	// Tokens define the delegated tokens.
	Tokens []*v1beta1.Coin `protobuf:"bytes,9,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// DelegatorShares define the total shares issued to a service's delegators.
	DelegatorShares []*v1beta1.DecCoin `protobuf:"bytes,10,rep,name=delegator_shares,json=delegatorShares,proto3" json:"delegator_shares,omitempty"`
	// contains filtered or unexported fields
}

Service defines the fields of a service

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAddress

func (x *Service) GetAddress() string

func (*Service) GetAdmin

func (x *Service) GetAdmin() string

func (*Service) GetDelegatorShares

func (x *Service) GetDelegatorShares() []*v1beta1.DecCoin

func (*Service) GetDescription

func (x *Service) GetDescription() string

func (*Service) GetId

func (x *Service) GetId() uint32

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetPictureUrl

func (x *Service) GetPictureUrl() string

func (*Service) GetStatus

func (x *Service) GetStatus() ServiceStatus

func (*Service) GetTokens

func (x *Service) GetTokens() []*v1beta1.Coin

func (*Service) GetWebsite

func (x *Service) GetWebsite() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type ServiceStatus

type ServiceStatus int32

ServiceStatus defines the status of a service

const (
	// SERVICE_STATUS_UNSPECIFIED defines an unspecified status
	ServiceStatus_SERVICE_STATUS_UNSPECIFIED ServiceStatus = 0
	// SERVICE_STATUS_CREATED identifies a recently created service that is not
	// yet active
	ServiceStatus_SERVICE_STATUS_CREATED ServiceStatus = 1
	// SERVICE_STATUS_ACTIVE identifies an active service
	ServiceStatus_SERVICE_STATUS_ACTIVE ServiceStatus = 2
	// SERVICE_STATUS_INACTIVE identifies an inactive service
	ServiceStatus_SERVICE_STATUS_INACTIVE ServiceStatus = 3
)

func (ServiceStatus) Descriptor

func (ServiceStatus) Enum

func (x ServiceStatus) Enum() *ServiceStatus

func (ServiceStatus) EnumDescriptor deprecated

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

Deprecated: Use ServiceStatus.Descriptor instead.

func (ServiceStatus) Number

func (ServiceStatus) String

func (x ServiceStatus) String() string

func (ServiceStatus) Type

type UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMsgServer) ActivateService

func (UnimplementedMsgServer) CreateService

func (UnimplementedMsgServer) DeleteService added in v1.3.0

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) UpdateService

type UnimplementedQueryServer

type UnimplementedQueryServer struct{}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Service

func (UnimplementedQueryServer) Services

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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