namespacev1

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: LGPL-3.0 Imports: 16 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.

Index

Constants

View Source
const (
	QueryService_Namespaces_FullMethodName = "/namespace.v1.QueryService/Namespaces"
	QueryService_Address_FullMethodName    = "/namespace.v1.QueryService/Address"
)
View Source
const (
	Msg_UpdateNamespace_FullMethodName = "/namespace.v1.Msg/UpdateNamespace"
)

Variables

View Source
var File_namespace_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_namespace_v1_query_proto protoreflect.FileDescriptor
View Source
var File_namespace_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "namespace.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateNamespace",
			Handler:    _Msg_UpdateNamespace_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "namespace/v1/tx.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 QueryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "namespace.v1.QueryService",
	HandlerType: (*QueryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Namespaces",
			Handler:    _QueryService_Namespaces_Handler,
		},
		{
			MethodName: "Address",
			Handler:    _QueryService_Address_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "namespace/v1/query.proto",
}

QueryService_ServiceDesc is the grpc.ServiceDesc for QueryService 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 RegisterQueryServiceServer

func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)

Types

type AddressRequest

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

func (*AddressRequest) Descriptor deprecated

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

Deprecated: Use AddressRequest.ProtoReflect.Descriptor instead.

func (*AddressRequest) GetNamespace

func (x *AddressRequest) GetNamespace() string

func (*AddressRequest) ProtoMessage

func (*AddressRequest) ProtoMessage()

func (*AddressRequest) ProtoReflect

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

func (*AddressRequest) Reset

func (x *AddressRequest) Reset()

func (*AddressRequest) String

func (x *AddressRequest) String() string

type AddressResponse

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

func (*AddressResponse) Descriptor deprecated

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

Deprecated: Use AddressResponse.ProtoReflect.Descriptor instead.

func (*AddressResponse) GetAddress

func (x *AddressResponse) GetAddress() string

func (*AddressResponse) ProtoMessage

func (*AddressResponse) ProtoMessage()

func (*AddressResponse) ProtoReflect

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

func (*AddressResponse) Reset

func (x *AddressResponse) Reset()

func (*AddressResponse) String

func (x *AddressResponse) String() string

type Genesis

type Genesis struct {
	Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*Genesis) Descriptor deprecated

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

Deprecated: Use Genesis.ProtoReflect.Descriptor instead.

func (*Genesis) GetNamespaces

func (x *Genesis) GetNamespaces() []*Namespace

func (*Genesis) ProtoMessage

func (*Genesis) ProtoMessage()

func (*Genesis) ProtoReflect

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

func (*Genesis) Reset

func (x *Genesis) Reset()

func (*Genesis) String

func (x *Genesis) String() string

type MsgClient

type MsgClient interface {
	UpdateNamespace(ctx context.Context, in *UpdateNamespaceRequest, opts ...grpc.CallOption) (*UpdateNamespaceResponse, 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.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	UpdateNamespace(context.Context, *UpdateNamespaceRequest) (*UpdateNamespaceResponse, error)
	// contains filtered or unexported methods
}

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

type Namespace

type Namespace struct {

	// shard_name is the name of the shard (i.e. darkforest1)
	ShardName string `protobuf:"bytes,1,opt,name=shard_name,json=shardName,proto3" json:"shard_name,omitempty"`
	// shard_address is the gRPC address the shard runs at (i.e. 127.0.0.1:51835)
	ShardAddress string `protobuf:"bytes,2,opt,name=shard_address,json=shardAddress,proto3" json:"shard_address,omitempty"`
	// contains filtered or unexported fields
}

func (*Namespace) Descriptor deprecated

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

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetShardAddress

func (x *Namespace) GetShardAddress() string

func (*Namespace) GetShardName

func (x *Namespace) GetShardName() string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) ProtoReflect

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

func (*Namespace) Reset

func (x *Namespace) Reset()

func (*Namespace) String

func (x *Namespace) String() string

type NamespacesRequest

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

func (*NamespacesRequest) Descriptor deprecated

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

Deprecated: Use NamespacesRequest.ProtoReflect.Descriptor instead.

func (*NamespacesRequest) ProtoMessage

func (*NamespacesRequest) ProtoMessage()

func (*NamespacesRequest) ProtoReflect

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

func (*NamespacesRequest) Reset

func (x *NamespacesRequest) Reset()

func (*NamespacesRequest) String

func (x *NamespacesRequest) String() string

type NamespacesResponse

type NamespacesResponse struct {
	Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespacesResponse) Descriptor deprecated

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

Deprecated: Use NamespacesResponse.ProtoReflect.Descriptor instead.

func (*NamespacesResponse) GetNamespaces

func (x *NamespacesResponse) GetNamespaces() []*Namespace

func (*NamespacesResponse) ProtoMessage

func (*NamespacesResponse) ProtoMessage()

func (*NamespacesResponse) ProtoReflect

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

func (*NamespacesResponse) Reset

func (x *NamespacesResponse) Reset()

func (*NamespacesResponse) String

func (x *NamespacesResponse) String() string

type QueryServiceClient

type QueryServiceClient interface {
	// Namespaces returns all the namespace:address pairs.
	Namespaces(ctx context.Context, in *NamespacesRequest, opts ...grpc.CallOption) (*NamespacesResponse, error)
	// Address returns the address for a given namespace.
	Address(ctx context.Context, in *AddressRequest, opts ...grpc.CallOption) (*AddressResponse, error)
}

QueryServiceClient is the client API for QueryService 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.

type QueryServiceServer

type QueryServiceServer interface {
	// Namespaces returns all the namespace:address pairs.
	Namespaces(context.Context, *NamespacesRequest) (*NamespacesResponse, error)
	// Address returns the address for a given namespace.
	Address(context.Context, *AddressRequest) (*AddressResponse, error)
	// contains filtered or unexported methods
}

QueryServiceServer is the server API for QueryService service. All implementations must embed UnimplementedQueryServiceServer for forward compatibility

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) UpdateNamespace

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServiceServer) Address

func (UnimplementedQueryServiceServer) Namespaces

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 UnsafeQueryServiceServer

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

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

type UpdateNamespaceRequest

type UpdateNamespaceRequest 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"`
	Namespace *Namespace `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

`UpdateNamespaceRequest` is the Msg/UpdateNamespace request type.

func (*UpdateNamespaceRequest) Descriptor deprecated

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

Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead.

func (*UpdateNamespaceRequest) GetAuthority

func (x *UpdateNamespaceRequest) GetAuthority() string

func (*UpdateNamespaceRequest) GetNamespace

func (x *UpdateNamespaceRequest) GetNamespace() *Namespace

func (*UpdateNamespaceRequest) ProtoMessage

func (*UpdateNamespaceRequest) ProtoMessage()

func (*UpdateNamespaceRequest) ProtoReflect

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

func (*UpdateNamespaceRequest) Reset

func (x *UpdateNamespaceRequest) Reset()

func (*UpdateNamespaceRequest) String

func (x *UpdateNamespaceRequest) String() string

type UpdateNamespaceResponse

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

`UpdateNamespaceResponse` defines the response structure for executing a UpdateNamespaceResponse message.

func (*UpdateNamespaceResponse) Descriptor deprecated

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

Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead.

func (*UpdateNamespaceResponse) ProtoMessage

func (*UpdateNamespaceResponse) ProtoMessage()

func (*UpdateNamespaceResponse) ProtoReflect

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

func (*UpdateNamespaceResponse) Reset

func (x *UpdateNamespaceResponse) Reset()

func (*UpdateNamespaceResponse) String

func (x *UpdateNamespaceResponse) String() string

Jump to

Keyboard shortcuts

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