v1

package
v0.0.0-...-324de33 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const MetadataMaxLength = 128

MetadataMaxLength is the maximum length of metadata.

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers interfaces with the interface registry.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers legacy amino codec.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type EventCreateGovernor

type EventCreateGovernor struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

EventCreateGovernor is an event emitted when a governor has registered.

func (*EventCreateGovernor) Descriptor

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

func (*EventCreateGovernor) GetAddress

func (m *EventCreateGovernor) GetAddress() string

func (*EventCreateGovernor) Marshal

func (m *EventCreateGovernor) Marshal() (dAtA []byte, err error)

func (*EventCreateGovernor) MarshalTo

func (m *EventCreateGovernor) MarshalTo(dAtA []byte) (int, error)

func (*EventCreateGovernor) MarshalToSizedBuffer

func (m *EventCreateGovernor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventCreateGovernor) ProtoMessage

func (*EventCreateGovernor) ProtoMessage()

func (*EventCreateGovernor) Reset

func (m *EventCreateGovernor) Reset()

func (*EventCreateGovernor) Size

func (m *EventCreateGovernor) Size() (n int)

func (*EventCreateGovernor) String

func (m *EventCreateGovernor) String() string

func (*EventCreateGovernor) Unmarshal

func (m *EventCreateGovernor) Unmarshal(dAtA []byte) error

func (*EventCreateGovernor) XXX_DiscardUnknown

func (m *EventCreateGovernor) XXX_DiscardUnknown()

func (*EventCreateGovernor) XXX_Marshal

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

func (*EventCreateGovernor) XXX_Merge

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

func (*EventCreateGovernor) XXX_Size

func (m *EventCreateGovernor) XXX_Size() int

func (*EventCreateGovernor) XXX_Unmarshal

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

type EventRemoveGovernor

type EventRemoveGovernor struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

EventRemoveGovernor is an event emitted when a governor has been removed.

func (*EventRemoveGovernor) Descriptor

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

func (*EventRemoveGovernor) GetAddress

func (m *EventRemoveGovernor) GetAddress() string

func (*EventRemoveGovernor) Marshal

func (m *EventRemoveGovernor) Marshal() (dAtA []byte, err error)

func (*EventRemoveGovernor) MarshalTo

func (m *EventRemoveGovernor) MarshalTo(dAtA []byte) (int, error)

func (*EventRemoveGovernor) MarshalToSizedBuffer

func (m *EventRemoveGovernor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventRemoveGovernor) ProtoMessage

func (*EventRemoveGovernor) ProtoMessage()

func (*EventRemoveGovernor) Reset

func (m *EventRemoveGovernor) Reset()

func (*EventRemoveGovernor) Size

func (m *EventRemoveGovernor) Size() (n int)

func (*EventRemoveGovernor) String

func (m *EventRemoveGovernor) String() string

func (*EventRemoveGovernor) Unmarshal

func (m *EventRemoveGovernor) Unmarshal(dAtA []byte) error

func (*EventRemoveGovernor) XXX_DiscardUnknown

func (m *EventRemoveGovernor) XXX_DiscardUnknown()

func (*EventRemoveGovernor) XXX_Marshal

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

func (*EventRemoveGovernor) XXX_Merge

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

func (*EventRemoveGovernor) XXX_Size

func (m *EventRemoveGovernor) XXX_Size() int

func (*EventRemoveGovernor) XXX_Unmarshal

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

type EventUpdateGovernorMetadata

type EventUpdateGovernorMetadata struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

EventUpdateGovernorMetadata is an event emitted when a governor has updated.

func (*EventUpdateGovernorMetadata) Descriptor

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

func (*EventUpdateGovernorMetadata) GetAddress

func (m *EventUpdateGovernorMetadata) GetAddress() string

func (*EventUpdateGovernorMetadata) Marshal

func (m *EventUpdateGovernorMetadata) Marshal() (dAtA []byte, err error)

func (*EventUpdateGovernorMetadata) MarshalTo

func (m *EventUpdateGovernorMetadata) MarshalTo(dAtA []byte) (int, error)

func (*EventUpdateGovernorMetadata) MarshalToSizedBuffer

func (m *EventUpdateGovernorMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventUpdateGovernorMetadata) ProtoMessage

func (*EventUpdateGovernorMetadata) ProtoMessage()

func (*EventUpdateGovernorMetadata) Reset

func (m *EventUpdateGovernorMetadata) Reset()

func (*EventUpdateGovernorMetadata) Size

func (m *EventUpdateGovernorMetadata) Size() (n int)

func (*EventUpdateGovernorMetadata) String

func (m *EventUpdateGovernorMetadata) String() string

func (*EventUpdateGovernorMetadata) Unmarshal

func (m *EventUpdateGovernorMetadata) Unmarshal(dAtA []byte) error

func (*EventUpdateGovernorMetadata) XXX_DiscardUnknown

func (m *EventUpdateGovernorMetadata) XXX_DiscardUnknown()

func (*EventUpdateGovernorMetadata) XXX_Marshal

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

func (*EventUpdateGovernorMetadata) XXX_Merge

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

func (*EventUpdateGovernorMetadata) XXX_Size

func (m *EventUpdateGovernorMetadata) XXX_Size() int

func (*EventUpdateGovernorMetadata) XXX_Unmarshal

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

type Governor

type Governor struct {
	// address is the address of the governor.
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is the metadata of the governor.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Governor defines the table and properties of a governor.

func (*Governor) Descriptor

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

func (*Governor) GetAddress

func (m *Governor) GetAddress() []byte

func (*Governor) GetMetadata

func (m *Governor) GetMetadata() string

func (*Governor) Marshal

func (m *Governor) Marshal() (dAtA []byte, err error)

func (*Governor) MarshalTo

func (m *Governor) MarshalTo(dAtA []byte) (int, error)

func (*Governor) MarshalToSizedBuffer

func (m *Governor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Governor) ProtoMessage

func (*Governor) ProtoMessage()

func (*Governor) Reset

func (m *Governor) Reset()

func (*Governor) Size

func (m *Governor) Size() (n int)

func (*Governor) String

func (m *Governor) String() string

func (*Governor) Unmarshal

func (m *Governor) Unmarshal(dAtA []byte) error

func (*Governor) Validate

func (m *Governor) Validate() error

Validate validates Governor.

func (*Governor) XXX_DiscardUnknown

func (m *Governor) XXX_DiscardUnknown()

func (*Governor) XXX_Marshal

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

func (*Governor) XXX_Merge

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

func (*Governor) XXX_Size

func (m *Governor) XXX_Size() int

func (*Governor) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateGovernor registers a governor.
	CreateGovernor(ctx context.Context, in *MsgCreateGovernor, opts ...grpc.CallOption) (*MsgCreateGovernorResponse, error)
	// RemoveGovernor removes a governor.
	RemoveGovernor(ctx context.Context, in *MsgRemoveGovernor, opts ...grpc.CallOption) (*MsgRemoveGovernorResponse, error)
	// UpdateGovernorMetadata updates a governor.
	UpdateGovernorMetadata(ctx context.Context, in *MsgUpdateGovernorMetadata, opts ...grpc.CallOption) (*MsgUpdateGovernorMetadataResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateGovernor

type MsgCreateGovernor struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is the metadata of the governor.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

MsgCreateGovernor is the Msg/CreateGovernor request type.

func (*MsgCreateGovernor) Descriptor

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

func (*MsgCreateGovernor) GetAddress

func (m *MsgCreateGovernor) GetAddress() string

func (*MsgCreateGovernor) GetMetadata

func (m *MsgCreateGovernor) GetMetadata() string

func (MsgCreateGovernor) GetSigners

func (m MsgCreateGovernor) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgCreateGovernor.

func (*MsgCreateGovernor) Marshal

func (m *MsgCreateGovernor) Marshal() (dAtA []byte, err error)

func (*MsgCreateGovernor) MarshalTo

func (m *MsgCreateGovernor) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateGovernor) MarshalToSizedBuffer

func (m *MsgCreateGovernor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateGovernor) ProtoMessage

func (*MsgCreateGovernor) ProtoMessage()

func (*MsgCreateGovernor) Reset

func (m *MsgCreateGovernor) Reset()

func (MsgCreateGovernor) Route

func (m MsgCreateGovernor) Route() string

Route implements the LegacyMsg interface.

func (*MsgCreateGovernor) Size

func (m *MsgCreateGovernor) Size() (n int)

func (*MsgCreateGovernor) String

func (m *MsgCreateGovernor) String() string

func (MsgCreateGovernor) Type

func (m MsgCreateGovernor) Type() string

Type implements the LegacyMsg interface.

func (*MsgCreateGovernor) Unmarshal

func (m *MsgCreateGovernor) Unmarshal(dAtA []byte) error

func (MsgCreateGovernor) ValidateBasic

func (m MsgCreateGovernor) ValidateBasic() error

ValidateBasic performs stateless validation on MsgCreateGovernor.

func (*MsgCreateGovernor) XXX_DiscardUnknown

func (m *MsgCreateGovernor) XXX_DiscardUnknown()

func (*MsgCreateGovernor) XXX_Marshal

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

func (*MsgCreateGovernor) XXX_Merge

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

func (*MsgCreateGovernor) XXX_Size

func (m *MsgCreateGovernor) XXX_Size() int

func (*MsgCreateGovernor) XXX_Unmarshal

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

type MsgCreateGovernorResponse

type MsgCreateGovernorResponse struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgCreateGovernorResponse is the Msg/CreateGovernor response type.

func (*MsgCreateGovernorResponse) Descriptor

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

func (*MsgCreateGovernorResponse) GetAddress

func (m *MsgCreateGovernorResponse) GetAddress() string

func (*MsgCreateGovernorResponse) Marshal

func (m *MsgCreateGovernorResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateGovernorResponse) MarshalTo

func (m *MsgCreateGovernorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateGovernorResponse) MarshalToSizedBuffer

func (m *MsgCreateGovernorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateGovernorResponse) ProtoMessage

func (*MsgCreateGovernorResponse) ProtoMessage()

func (*MsgCreateGovernorResponse) Reset

func (m *MsgCreateGovernorResponse) Reset()

func (*MsgCreateGovernorResponse) Size

func (m *MsgCreateGovernorResponse) Size() (n int)

func (*MsgCreateGovernorResponse) String

func (m *MsgCreateGovernorResponse) String() string

func (*MsgCreateGovernorResponse) Unmarshal

func (m *MsgCreateGovernorResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateGovernorResponse) XXX_DiscardUnknown

func (m *MsgCreateGovernorResponse) XXX_DiscardUnknown()

func (*MsgCreateGovernorResponse) XXX_Marshal

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

func (*MsgCreateGovernorResponse) XXX_Merge

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

func (*MsgCreateGovernorResponse) XXX_Size

func (m *MsgCreateGovernorResponse) XXX_Size() int

func (*MsgCreateGovernorResponse) XXX_Unmarshal

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

type MsgRemoveGovernor

type MsgRemoveGovernor struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgRemoveGovernor is the Msg/RemoveGovernor request type.

func (*MsgRemoveGovernor) Descriptor

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

func (*MsgRemoveGovernor) GetAddress

func (m *MsgRemoveGovernor) GetAddress() string

func (MsgRemoveGovernor) GetSigners

func (m MsgRemoveGovernor) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgRemoveGovernor.

func (*MsgRemoveGovernor) Marshal

func (m *MsgRemoveGovernor) Marshal() (dAtA []byte, err error)

func (*MsgRemoveGovernor) MarshalTo

func (m *MsgRemoveGovernor) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemoveGovernor) MarshalToSizedBuffer

func (m *MsgRemoveGovernor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemoveGovernor) ProtoMessage

func (*MsgRemoveGovernor) ProtoMessage()

func (*MsgRemoveGovernor) Reset

func (m *MsgRemoveGovernor) Reset()

func (MsgRemoveGovernor) Route

func (m MsgRemoveGovernor) Route() string

Route implements the LegacyMsg interface.

func (*MsgRemoveGovernor) Size

func (m *MsgRemoveGovernor) Size() (n int)

func (*MsgRemoveGovernor) String

func (m *MsgRemoveGovernor) String() string

func (MsgRemoveGovernor) Type

func (m MsgRemoveGovernor) Type() string

Type implements the LegacyMsg interface.

func (*MsgRemoveGovernor) Unmarshal

func (m *MsgRemoveGovernor) Unmarshal(dAtA []byte) error

func (MsgRemoveGovernor) ValidateBasic

func (m MsgRemoveGovernor) ValidateBasic() error

ValidateBasic performs stateless validation on MsgRemoveGovernor.

func (*MsgRemoveGovernor) XXX_DiscardUnknown

func (m *MsgRemoveGovernor) XXX_DiscardUnknown()

func (*MsgRemoveGovernor) XXX_Marshal

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

func (*MsgRemoveGovernor) XXX_Merge

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

func (*MsgRemoveGovernor) XXX_Size

func (m *MsgRemoveGovernor) XXX_Size() int

func (*MsgRemoveGovernor) XXX_Unmarshal

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

type MsgRemoveGovernorResponse

type MsgRemoveGovernorResponse struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgRemoveGovernorResponse is the Msg/RemoveGovernor response type.

func (*MsgRemoveGovernorResponse) Descriptor

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

func (*MsgRemoveGovernorResponse) GetAddress

func (m *MsgRemoveGovernorResponse) GetAddress() string

func (*MsgRemoveGovernorResponse) Marshal

func (m *MsgRemoveGovernorResponse) Marshal() (dAtA []byte, err error)

func (*MsgRemoveGovernorResponse) MarshalTo

func (m *MsgRemoveGovernorResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemoveGovernorResponse) MarshalToSizedBuffer

func (m *MsgRemoveGovernorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemoveGovernorResponse) ProtoMessage

func (*MsgRemoveGovernorResponse) ProtoMessage()

func (*MsgRemoveGovernorResponse) Reset

func (m *MsgRemoveGovernorResponse) Reset()

func (*MsgRemoveGovernorResponse) Size

func (m *MsgRemoveGovernorResponse) Size() (n int)

func (*MsgRemoveGovernorResponse) String

func (m *MsgRemoveGovernorResponse) String() string

func (*MsgRemoveGovernorResponse) Unmarshal

func (m *MsgRemoveGovernorResponse) Unmarshal(dAtA []byte) error

func (*MsgRemoveGovernorResponse) XXX_DiscardUnknown

func (m *MsgRemoveGovernorResponse) XXX_DiscardUnknown()

func (*MsgRemoveGovernorResponse) XXX_Marshal

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

func (*MsgRemoveGovernorResponse) XXX_Merge

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

func (*MsgRemoveGovernorResponse) XXX_Size

func (m *MsgRemoveGovernorResponse) XXX_Size() int

func (*MsgRemoveGovernorResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateGovernor registers a governor.
	CreateGovernor(context.Context, *MsgCreateGovernor) (*MsgCreateGovernorResponse, error)
	// RemoveGovernor removes a governor.
	RemoveGovernor(context.Context, *MsgRemoveGovernor) (*MsgRemoveGovernorResponse, error)
	// UpdateGovernorMetadata updates a governor.
	UpdateGovernorMetadata(context.Context, *MsgUpdateGovernorMetadata) (*MsgUpdateGovernorMetadataResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateGovernorMetadata

type MsgUpdateGovernorMetadata struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// new_metadata is the new metadata of the governor.
	NewMetadata string `protobuf:"bytes,2,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"`
}

MsgUpdateGovernorMetadata is the Msg/UpdateGovernorMetadata request type.

func (*MsgUpdateGovernorMetadata) Descriptor

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

func (*MsgUpdateGovernorMetadata) GetAddress

func (m *MsgUpdateGovernorMetadata) GetAddress() string

func (*MsgUpdateGovernorMetadata) GetNewMetadata

func (m *MsgUpdateGovernorMetadata) GetNewMetadata() string

func (MsgUpdateGovernorMetadata) GetSigners

func (m MsgUpdateGovernorMetadata) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgUpdateGovernorMetadata.

func (*MsgUpdateGovernorMetadata) Marshal

func (m *MsgUpdateGovernorMetadata) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGovernorMetadata) MarshalTo

func (m *MsgUpdateGovernorMetadata) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGovernorMetadata) MarshalToSizedBuffer

func (m *MsgUpdateGovernorMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGovernorMetadata) ProtoMessage

func (*MsgUpdateGovernorMetadata) ProtoMessage()

func (*MsgUpdateGovernorMetadata) Reset

func (m *MsgUpdateGovernorMetadata) Reset()

func (MsgUpdateGovernorMetadata) Route

Route implements the LegacyMsg interface.

func (*MsgUpdateGovernorMetadata) Size

func (m *MsgUpdateGovernorMetadata) Size() (n int)

func (*MsgUpdateGovernorMetadata) String

func (m *MsgUpdateGovernorMetadata) String() string

func (MsgUpdateGovernorMetadata) Type

Type implements the LegacyMsg interface.

func (*MsgUpdateGovernorMetadata) Unmarshal

func (m *MsgUpdateGovernorMetadata) Unmarshal(dAtA []byte) error

func (MsgUpdateGovernorMetadata) ValidateBasic

func (m MsgUpdateGovernorMetadata) ValidateBasic() error

ValidateBasic performs stateless validation on MsgUpdateGovernorMetadata.

func (*MsgUpdateGovernorMetadata) XXX_DiscardUnknown

func (m *MsgUpdateGovernorMetadata) XXX_DiscardUnknown()

func (*MsgUpdateGovernorMetadata) XXX_Marshal

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

func (*MsgUpdateGovernorMetadata) XXX_Merge

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

func (*MsgUpdateGovernorMetadata) XXX_Size

func (m *MsgUpdateGovernorMetadata) XXX_Size() int

func (*MsgUpdateGovernorMetadata) XXX_Unmarshal

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

type MsgUpdateGovernorMetadataResponse

type MsgUpdateGovernorMetadataResponse struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgUpdateGovernorMetadataResponse is the Msg/UpdateGovernorMetadata response type.

func (*MsgUpdateGovernorMetadataResponse) Descriptor

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

func (*MsgUpdateGovernorMetadataResponse) GetAddress

func (m *MsgUpdateGovernorMetadataResponse) GetAddress() string

func (*MsgUpdateGovernorMetadataResponse) Marshal

func (m *MsgUpdateGovernorMetadataResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGovernorMetadataResponse) MarshalTo

func (m *MsgUpdateGovernorMetadataResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGovernorMetadataResponse) MarshalToSizedBuffer

func (m *MsgUpdateGovernorMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGovernorMetadataResponse) ProtoMessage

func (*MsgUpdateGovernorMetadataResponse) ProtoMessage()

func (*MsgUpdateGovernorMetadataResponse) Reset

func (*MsgUpdateGovernorMetadataResponse) Size

func (m *MsgUpdateGovernorMetadataResponse) Size() (n int)

func (*MsgUpdateGovernorMetadataResponse) String

func (*MsgUpdateGovernorMetadataResponse) Unmarshal

func (m *MsgUpdateGovernorMetadataResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateGovernorMetadataResponse) XXX_DiscardUnknown

func (m *MsgUpdateGovernorMetadataResponse) XXX_DiscardUnknown()

func (*MsgUpdateGovernorMetadataResponse) XXX_Marshal

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

func (*MsgUpdateGovernorMetadataResponse) XXX_Merge

func (*MsgUpdateGovernorMetadataResponse) XXX_Size

func (m *MsgUpdateGovernorMetadataResponse) XXX_Size() int

func (*MsgUpdateGovernorMetadataResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Governor queries a governor by address.
	Governor(ctx context.Context, in *QueryGovernorRequest, opts ...grpc.CallOption) (*QueryGovernorResponse, error)
	// Governors queries all governors.
	Governors(ctx context.Context, in *QueryGovernorsRequest, opts ...grpc.CallOption) (*QueryGovernorsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGovernorRequest

type QueryGovernorRequest struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryGovernorRequest is the Query/Governor request type.

func (*QueryGovernorRequest) Descriptor

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

func (*QueryGovernorRequest) GetAddress

func (m *QueryGovernorRequest) GetAddress() string

func (*QueryGovernorRequest) Marshal

func (m *QueryGovernorRequest) Marshal() (dAtA []byte, err error)

func (*QueryGovernorRequest) MarshalTo

func (m *QueryGovernorRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGovernorRequest) MarshalToSizedBuffer

func (m *QueryGovernorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGovernorRequest) ProtoMessage

func (*QueryGovernorRequest) ProtoMessage()

func (*QueryGovernorRequest) Reset

func (m *QueryGovernorRequest) Reset()

func (*QueryGovernorRequest) Size

func (m *QueryGovernorRequest) Size() (n int)

func (*QueryGovernorRequest) String

func (m *QueryGovernorRequest) String() string

func (*QueryGovernorRequest) Unmarshal

func (m *QueryGovernorRequest) Unmarshal(dAtA []byte) error

func (*QueryGovernorRequest) XXX_DiscardUnknown

func (m *QueryGovernorRequest) XXX_DiscardUnknown()

func (*QueryGovernorRequest) XXX_Marshal

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

func (*QueryGovernorRequest) XXX_Merge

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

func (*QueryGovernorRequest) XXX_Size

func (m *QueryGovernorRequest) XXX_Size() int

func (*QueryGovernorRequest) XXX_Unmarshal

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

type QueryGovernorResponse

type QueryGovernorResponse struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is the metadata of the governor.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

QueryGovernorResponse is the Query/Governor response type.

func (*QueryGovernorResponse) Descriptor

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

func (*QueryGovernorResponse) GetAddress

func (m *QueryGovernorResponse) GetAddress() string

func (*QueryGovernorResponse) GetMetadata

func (m *QueryGovernorResponse) GetMetadata() string

func (*QueryGovernorResponse) Marshal

func (m *QueryGovernorResponse) Marshal() (dAtA []byte, err error)

func (*QueryGovernorResponse) MarshalTo

func (m *QueryGovernorResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGovernorResponse) MarshalToSizedBuffer

func (m *QueryGovernorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGovernorResponse) ProtoMessage

func (*QueryGovernorResponse) ProtoMessage()

func (*QueryGovernorResponse) Reset

func (m *QueryGovernorResponse) Reset()

func (*QueryGovernorResponse) Size

func (m *QueryGovernorResponse) Size() (n int)

func (*QueryGovernorResponse) String

func (m *QueryGovernorResponse) String() string

func (*QueryGovernorResponse) Unmarshal

func (m *QueryGovernorResponse) Unmarshal(dAtA []byte) error

func (*QueryGovernorResponse) XXX_DiscardUnknown

func (m *QueryGovernorResponse) XXX_DiscardUnknown()

func (*QueryGovernorResponse) XXX_Marshal

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

func (*QueryGovernorResponse) XXX_Merge

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

func (*QueryGovernorResponse) XXX_Size

func (m *QueryGovernorResponse) XXX_Size() int

func (*QueryGovernorResponse) XXX_Unmarshal

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

type QueryGovernorsRequest

type QueryGovernorsRequest struct {
	// pagination is the optional pagination of the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGovernorsRequest is the Query/Governors request type.

func (*QueryGovernorsRequest) Descriptor

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

func (*QueryGovernorsRequest) GetPagination

func (m *QueryGovernorsRequest) GetPagination() *query.PageRequest

func (*QueryGovernorsRequest) Marshal

func (m *QueryGovernorsRequest) Marshal() (dAtA []byte, err error)

func (*QueryGovernorsRequest) MarshalTo

func (m *QueryGovernorsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGovernorsRequest) MarshalToSizedBuffer

func (m *QueryGovernorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGovernorsRequest) ProtoMessage

func (*QueryGovernorsRequest) ProtoMessage()

func (*QueryGovernorsRequest) Reset

func (m *QueryGovernorsRequest) Reset()

func (*QueryGovernorsRequest) Size

func (m *QueryGovernorsRequest) Size() (n int)

func (*QueryGovernorsRequest) String

func (m *QueryGovernorsRequest) String() string

func (*QueryGovernorsRequest) Unmarshal

func (m *QueryGovernorsRequest) Unmarshal(dAtA []byte) error

func (*QueryGovernorsRequest) XXX_DiscardUnknown

func (m *QueryGovernorsRequest) XXX_DiscardUnknown()

func (*QueryGovernorsRequest) XXX_Marshal

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

func (*QueryGovernorsRequest) XXX_Merge

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

func (*QueryGovernorsRequest) XXX_Size

func (m *QueryGovernorsRequest) XXX_Size() int

func (*QueryGovernorsRequest) XXX_Unmarshal

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

type QueryGovernorsResponse

type QueryGovernorsResponse struct {
	// governors is the list of governors.
	Governors []*QueryGovernorsResponse_Governor `protobuf:"bytes,1,rep,name=governors,proto3" json:"governors,omitempty"`
	// pagination is the pagination of the response.
	Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGovernorsResponse is the Query/Governors response type.

func (*QueryGovernorsResponse) Descriptor

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

func (*QueryGovernorsResponse) GetGovernors

func (*QueryGovernorsResponse) GetPagination

func (m *QueryGovernorsResponse) GetPagination() *query.PageResponse

func (*QueryGovernorsResponse) Marshal

func (m *QueryGovernorsResponse) Marshal() (dAtA []byte, err error)

func (*QueryGovernorsResponse) MarshalTo

func (m *QueryGovernorsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGovernorsResponse) MarshalToSizedBuffer

func (m *QueryGovernorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGovernorsResponse) ProtoMessage

func (*QueryGovernorsResponse) ProtoMessage()

func (*QueryGovernorsResponse) Reset

func (m *QueryGovernorsResponse) Reset()

func (*QueryGovernorsResponse) Size

func (m *QueryGovernorsResponse) Size() (n int)

func (*QueryGovernorsResponse) String

func (m *QueryGovernorsResponse) String() string

func (*QueryGovernorsResponse) Unmarshal

func (m *QueryGovernorsResponse) Unmarshal(dAtA []byte) error

func (*QueryGovernorsResponse) XXX_DiscardUnknown

func (m *QueryGovernorsResponse) XXX_DiscardUnknown()

func (*QueryGovernorsResponse) XXX_Marshal

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

func (*QueryGovernorsResponse) XXX_Merge

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

func (*QueryGovernorsResponse) XXX_Size

func (m *QueryGovernorsResponse) XXX_Size() int

func (*QueryGovernorsResponse) XXX_Unmarshal

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

type QueryGovernorsResponse_Governor

type QueryGovernorsResponse_Governor struct {
	// address is the address of the governor.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is the metadata of the governor.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Governor is the governor properties.

func (*QueryGovernorsResponse_Governor) Descriptor

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

func (*QueryGovernorsResponse_Governor) GetAddress

func (m *QueryGovernorsResponse_Governor) GetAddress() string

func (*QueryGovernorsResponse_Governor) GetMetadata

func (m *QueryGovernorsResponse_Governor) GetMetadata() string

func (*QueryGovernorsResponse_Governor) Marshal

func (m *QueryGovernorsResponse_Governor) Marshal() (dAtA []byte, err error)

func (*QueryGovernorsResponse_Governor) MarshalTo

func (m *QueryGovernorsResponse_Governor) MarshalTo(dAtA []byte) (int, error)

func (*QueryGovernorsResponse_Governor) MarshalToSizedBuffer

func (m *QueryGovernorsResponse_Governor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGovernorsResponse_Governor) ProtoMessage

func (*QueryGovernorsResponse_Governor) ProtoMessage()

func (*QueryGovernorsResponse_Governor) Reset

func (*QueryGovernorsResponse_Governor) Size

func (m *QueryGovernorsResponse_Governor) Size() (n int)

func (*QueryGovernorsResponse_Governor) String

func (*QueryGovernorsResponse_Governor) Unmarshal

func (m *QueryGovernorsResponse_Governor) Unmarshal(dAtA []byte) error

func (*QueryGovernorsResponse_Governor) XXX_DiscardUnknown

func (m *QueryGovernorsResponse_Governor) XXX_DiscardUnknown()

func (*QueryGovernorsResponse_Governor) XXX_Marshal

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

func (*QueryGovernorsResponse_Governor) XXX_Merge

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

func (*QueryGovernorsResponse_Governor) XXX_Size

func (m *QueryGovernorsResponse_Governor) XXX_Size() int

func (*QueryGovernorsResponse_Governor) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Governor queries a governor by address.
	Governor(context.Context, *QueryGovernorRequest) (*QueryGovernorResponse, error)
	// Governors queries all governors.
	Governors(context.Context, *QueryGovernorsRequest) (*QueryGovernorsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateGovernor

func (*UnimplementedMsgServer) RemoveGovernor

func (*UnimplementedMsgServer) UpdateGovernorMetadata

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Governor

func (*UnimplementedQueryServer) Governors

Jump to

Keyboard shortcuts

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