Documentation ¶
Overview ¶
nolint
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetProfilerKey(addr sdk.AccAddress) []byte
- func GetProfilersSubspaceKey() []byte
- func GetTrusteeKey(addr sdk.AccAddress) []byte
- func GetTrusteesSubspaceKey() []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidAccountType(option AccountType) bool
- type AccountType
- type AddGuardian
- func (*AddGuardian) Descriptor() ([]byte, []int)
- func (g AddGuardian) EnsureLength() error
- func (m *AddGuardian) GetAddedBy() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *AddGuardian) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *AddGuardian) GetDescription() string
- func (m *AddGuardian) Marshal() (dAtA []byte, err error)
- func (m *AddGuardian) MarshalTo(dAtA []byte) (int, error)
- func (m *AddGuardian) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddGuardian) ProtoMessage()
- func (m *AddGuardian) Reset()
- func (m *AddGuardian) Size() (n int)
- func (m *AddGuardian) String() string
- func (m *AddGuardian) Unmarshal(dAtA []byte) error
- func (g AddGuardian) ValidateBasic() error
- func (m *AddGuardian) XXX_DiscardUnknown()
- func (m *AddGuardian) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddGuardian) XXX_Merge(src proto.Message)
- func (m *AddGuardian) XXX_Size() int
- func (m *AddGuardian) XXX_Unmarshal(b []byte) error
- type DeleteGuardian
- func (*DeleteGuardian) Descriptor() ([]byte, []int)
- func (m *DeleteGuardian) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *DeleteGuardian) GetDeletedBy() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *DeleteGuardian) Marshal() (dAtA []byte, err error)
- func (m *DeleteGuardian) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteGuardian) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteGuardian) ProtoMessage()
- func (m *DeleteGuardian) Reset()
- func (m *DeleteGuardian) Size() (n int)
- func (m *DeleteGuardian) String() string
- func (m *DeleteGuardian) Unmarshal(dAtA []byte) error
- func (g DeleteGuardian) ValidateBasic() error
- func (m *DeleteGuardian) XXX_DiscardUnknown()
- func (m *DeleteGuardian) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteGuardian) XXX_Merge(src proto.Message)
- func (m *DeleteGuardian) XXX_Size() int
- func (m *DeleteGuardian) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetProfilers() []Guardian
- func (m *GenesisState) GetTrustees() []Guardian
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Guardian
- func (*Guardian) Descriptor() ([]byte, []int)
- func (g Guardian) Equal(guardian Guardian) bool
- func (m *Guardian) GetAccountType() AccountType
- func (m *Guardian) GetAddedBy() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Guardian) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Guardian) GetDescription() string
- func (m *Guardian) Marshal() (dAtA []byte, err error)
- func (m *Guardian) MarshalTo(dAtA []byte) (int, error)
- func (m *Guardian) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Guardian) ProtoMessage()
- func (m *Guardian) Reset()
- func (m *Guardian) Size() (n int)
- func (m *Guardian) String() string
- func (m *Guardian) Unmarshal(dAtA []byte) error
- func (m *Guardian) XXX_DiscardUnknown()
- func (m *Guardian) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Guardian) XXX_Merge(src proto.Message)
- func (m *Guardian) XXX_Size() int
- func (m *Guardian) XXX_Unmarshal(b []byte) error
- type GuardianI
- type MsgAddProfiler
- func (*MsgAddProfiler) Descriptor() ([]byte, []int)
- func (m *MsgAddProfiler) GetAddGuardian() AddGuardian
- func (msg MsgAddProfiler) GetSignBytes() []byte
- func (msg MsgAddProfiler) GetSigners() []sdk.AccAddress
- func (m *MsgAddProfiler) Marshal() (dAtA []byte, err error)
- func (m *MsgAddProfiler) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddProfiler) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddProfiler) ProtoMessage()
- func (m *MsgAddProfiler) Reset()
- func (msg MsgAddProfiler) Route() string
- func (m *MsgAddProfiler) Size() (n int)
- func (m *MsgAddProfiler) String() string
- func (msg MsgAddProfiler) Type() string
- func (m *MsgAddProfiler) Unmarshal(dAtA []byte) error
- func (msg MsgAddProfiler) ValidateBasic() error
- func (m *MsgAddProfiler) XXX_DiscardUnknown()
- func (m *MsgAddProfiler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddProfiler) XXX_Merge(src proto.Message)
- func (m *MsgAddProfiler) XXX_Size() int
- func (m *MsgAddProfiler) XXX_Unmarshal(b []byte) error
- type MsgAddTrustee
- func (*MsgAddTrustee) Descriptor() ([]byte, []int)
- func (m *MsgAddTrustee) GetAddGuardian() AddGuardian
- func (msg MsgAddTrustee) GetSignBytes() []byte
- func (msg MsgAddTrustee) GetSigners() []sdk.AccAddress
- func (m *MsgAddTrustee) Marshal() (dAtA []byte, err error)
- func (m *MsgAddTrustee) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddTrustee) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddTrustee) ProtoMessage()
- func (m *MsgAddTrustee) Reset()
- func (msg MsgAddTrustee) Route() string
- func (m *MsgAddTrustee) Size() (n int)
- func (m *MsgAddTrustee) String() string
- func (msg MsgAddTrustee) Type() string
- func (m *MsgAddTrustee) Unmarshal(dAtA []byte) error
- func (msg MsgAddTrustee) ValidateBasic() error
- func (m *MsgAddTrustee) XXX_DiscardUnknown()
- func (m *MsgAddTrustee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddTrustee) XXX_Merge(src proto.Message)
- func (m *MsgAddTrustee) XXX_Size() int
- func (m *MsgAddTrustee) XXX_Unmarshal(b []byte) error
- type MsgDeleteProfiler
- func (*MsgDeleteProfiler) Descriptor() ([]byte, []int)
- func (m *MsgDeleteProfiler) GetDeleteGuardian() DeleteGuardian
- func (msg MsgDeleteProfiler) GetSignBytes() []byte
- func (msg MsgDeleteProfiler) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteProfiler) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteProfiler) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteProfiler) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteProfiler) ProtoMessage()
- func (m *MsgDeleteProfiler) Reset()
- func (msg MsgDeleteProfiler) Route() string
- func (m *MsgDeleteProfiler) Size() (n int)
- func (m *MsgDeleteProfiler) String() string
- func (msg MsgDeleteProfiler) Type() string
- func (m *MsgDeleteProfiler) Unmarshal(dAtA []byte) error
- func (msg MsgDeleteProfiler) ValidateBasic() error
- func (m *MsgDeleteProfiler) XXX_DiscardUnknown()
- func (m *MsgDeleteProfiler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteProfiler) XXX_Merge(src proto.Message)
- func (m *MsgDeleteProfiler) XXX_Size() int
- func (m *MsgDeleteProfiler) XXX_Unmarshal(b []byte) error
- type MsgDeleteTrustee
- func (*MsgDeleteTrustee) Descriptor() ([]byte, []int)
- func (m *MsgDeleteTrustee) GetDeleteGuardian() DeleteGuardian
- func (msg MsgDeleteTrustee) GetSignBytes() []byte
- func (msg MsgDeleteTrustee) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteTrustee) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteTrustee) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteTrustee) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteTrustee) ProtoMessage()
- func (m *MsgDeleteTrustee) Reset()
- func (msg MsgDeleteTrustee) Route() string
- func (m *MsgDeleteTrustee) Size() (n int)
- func (m *MsgDeleteTrustee) String() string
- func (msg MsgDeleteTrustee) Type() string
- func (m *MsgDeleteTrustee) Unmarshal(dAtA []byte) error
- func (msg MsgDeleteTrustee) ValidateBasic() error
- func (m *MsgDeleteTrustee) XXX_DiscardUnknown()
- func (m *MsgDeleteTrustee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteTrustee) XXX_Merge(src proto.Message)
- func (m *MsgDeleteTrustee) XXX_Size() int
- func (m *MsgDeleteTrustee) XXX_Unmarshal(b []byte) error
- type Profilers
- type QueryClient
- type QueryProfilersRequest
- func (*QueryProfilersRequest) Descriptor() ([]byte, []int)
- func (m *QueryProfilersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProfilersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProfilersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProfilersRequest) ProtoMessage()
- func (m *QueryProfilersRequest) Reset()
- func (m *QueryProfilersRequest) Size() (n int)
- func (m *QueryProfilersRequest) String() string
- func (m *QueryProfilersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProfilersRequest) XXX_DiscardUnknown()
- func (m *QueryProfilersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProfilersRequest) XXX_Merge(src proto.Message)
- func (m *QueryProfilersRequest) XXX_Size() int
- func (m *QueryProfilersRequest) XXX_Unmarshal(b []byte) error
- type QueryProfilersResponse
- func (*QueryProfilersResponse) Descriptor() ([]byte, []int)
- func (m *QueryProfilersResponse) GetProfilers() []Guardian
- func (m *QueryProfilersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProfilersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProfilersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProfilersResponse) ProtoMessage()
- func (m *QueryProfilersResponse) Reset()
- func (m *QueryProfilersResponse) Size() (n int)
- func (m *QueryProfilersResponse) String() string
- func (m *QueryProfilersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProfilersResponse) XXX_DiscardUnknown()
- func (m *QueryProfilersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProfilersResponse) XXX_Merge(src proto.Message)
- func (m *QueryProfilersResponse) XXX_Size() int
- func (m *QueryProfilersResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryTrusteesRequest
- func (*QueryTrusteesRequest) Descriptor() ([]byte, []int)
- func (m *QueryTrusteesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTrusteesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTrusteesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTrusteesRequest) ProtoMessage()
- func (m *QueryTrusteesRequest) Reset()
- func (m *QueryTrusteesRequest) Size() (n int)
- func (m *QueryTrusteesRequest) String() string
- func (m *QueryTrusteesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTrusteesRequest) XXX_DiscardUnknown()
- func (m *QueryTrusteesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTrusteesRequest) XXX_Merge(src proto.Message)
- func (m *QueryTrusteesRequest) XXX_Size() int
- func (m *QueryTrusteesRequest) XXX_Unmarshal(b []byte) error
- type QueryTrusteesResponse
- func (*QueryTrusteesResponse) Descriptor() ([]byte, []int)
- func (m *QueryTrusteesResponse) GetTrustees() []Guardian
- func (m *QueryTrusteesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTrusteesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTrusteesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTrusteesResponse) ProtoMessage()
- func (m *QueryTrusteesResponse) Reset()
- func (m *QueryTrusteesResponse) Size() (n int)
- func (m *QueryTrusteesResponse) String() string
- func (m *QueryTrusteesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTrusteesResponse) XXX_DiscardUnknown()
- func (m *QueryTrusteesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTrusteesResponse) XXX_Merge(src proto.Message)
- func (m *QueryTrusteesResponse) XXX_Size() int
- func (m *QueryTrusteesResponse) XXX_Unmarshal(b []byte) error
- type Trustees
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeAddProfiler = "add_profiler" EventTypeAddTrustee = "add_trustee" EventTypeDeleteProfiler = "delete_profiler" EventTypeDeleteTrustee = "delete_trustee" AttributeKeyProfilerAddress = "address" AttributeKeyTrusteeAddress = "address" AttributeKeyAddedBy = "added_by" AttributeKeyDeletedBy = "deleted_by" AttributeValueCategory = ModuleName )
guardian module event types
const ( // module name ModuleName = "guardian" // StoreKey is the default store key for guardian StoreKey = ModuleName // RouterKey is the message route for guardian RouterKey = ModuleName // QuerierRoute is the querier route for the guardian store. QuerierRoute = StoreKey // Query endpoints supported by the guardian querier QueryProfilers = "profilers" QueryTrustees = "trustees" )
nolint
const ( TypeMsgAddProfiler = "add_profiler" // type for MsgAddProfiler TypeMsgDeleteProfiler = "delete_profiler" // type for MsgDeleteProfiler TypeMsgAddTrustee = "add_trustee" // type for MsgAddTrustee TypeMsgDeleteTrustee = "delete_trustee" // type for MsgDeleteTrustee )
Variables ¶
var ( ErrUnknownOperator = sdkerrors.Register(ModuleName, 2, "unknown operator") ErrUnknownProfiler = sdkerrors.Register(ModuleName, 3, "unknown profiler") ErrUnknownTrustee = sdkerrors.Register(ModuleName, 4, "unknown trustee") ErrProfilerExists = sdkerrors.Register(ModuleName, 5, "profiler already exists") ErrTrusteeExists = sdkerrors.Register(ModuleName, 6, "trustee already exists") ErrDeleteGenesisProfiler = sdkerrors.Register(ModuleName, 7, "can't delete genesis profiler") ErrDeleteGenesisTrustee = sdkerrors.Register(ModuleName, 8, "can't delete genesis trustee") )
guardian module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGuardian = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGuardian = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGuardian = fmt.Errorf("proto: unexpected end of group") )
var ( ProfilerKey = []byte{0x00} // profiler key TrusteeKey = []byte{0x01} // trustee key )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var AccountType_name = map[int32]string{
0: "GENESIS",
1: "ORDINARY",
}
var AccountType_value = map[string]int32{
"GENESIS": 0,
"ORDINARY": 1,
}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetProfilerKey ¶
func GetProfilerKey(addr sdk.AccAddress) []byte
GetProfilerKey returns profiler key bytes
func GetProfilersSubspaceKey ¶
func GetProfilersSubspaceKey() []byte
GetProfilersSubspaceKey returns the key for getting all profilers from the store
func GetTrusteeKey ¶
func GetTrusteeKey(addr sdk.AccAddress) []byte
GetTrusteeKey returns trustee key bytes
func GetTrusteesSubspaceKey ¶
func GetTrusteesSubspaceKey() []byte
GetProfilersSubspaceKey returns the key for getting all profilers from the store
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary module/guardian interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.
func RegisterQueryHandler ¶
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidAccountType ¶
func ValidAccountType(option AccountType) bool
ValidAccountType returns true if the AccountType option is valid and false otherwise.
Types ¶
type AccountType ¶
type AccountType int32
AccountType defines the guardian account type
const ( // GENESIS defines a genesis account type Genesis AccountType = 0 // ORDINARY defines a ordinary account type Ordinary AccountType = 1 )
func AccountTypeFromString ¶
func AccountTypeFromString(str string) (AccountType, error)
AccountTypeFromString converts string to AccountType byte, Returns ff if invalid.
func (AccountType) EnumDescriptor ¶
func (AccountType) EnumDescriptor() ([]byte, []int)
func (AccountType) Format ¶
func (at AccountType) Format(s fmt.State, verb rune)
Format implements the fmt.Formatter interface.
func (AccountType) Marshal ¶
func (at AccountType) Marshal() ([]byte, error)
Marshal needed for protobuf compatibility.
func (AccountType) String ¶
func (x AccountType) String() string
func (*AccountType) Unmarshal ¶
func (at *AccountType) Unmarshal(data []byte) error
Unmarshal needed for protobuf compatibility.
type AddGuardian ¶
type AddGuardian struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` AddedBy github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 153-byte string literal not displayed */ }
AddGuardian defines the properties of add guardian message
func (*AddGuardian) Descriptor ¶
func (*AddGuardian) Descriptor() ([]byte, []int)
func (AddGuardian) EnsureLength ¶
func (g AddGuardian) EnsureLength() error
EnsureLength validate the length of AddGuardian
func (*AddGuardian) GetAddedBy ¶
func (m *AddGuardian) GetAddedBy() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*AddGuardian) GetAddress ¶
func (m *AddGuardian) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*AddGuardian) GetDescription ¶
func (m *AddGuardian) GetDescription() string
func (*AddGuardian) Marshal ¶
func (m *AddGuardian) Marshal() (dAtA []byte, err error)
func (*AddGuardian) MarshalToSizedBuffer ¶
func (m *AddGuardian) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddGuardian) ProtoMessage ¶
func (*AddGuardian) ProtoMessage()
func (*AddGuardian) Reset ¶
func (m *AddGuardian) Reset()
func (*AddGuardian) Size ¶
func (m *AddGuardian) Size() (n int)
func (*AddGuardian) String ¶
func (m *AddGuardian) String() string
func (*AddGuardian) Unmarshal ¶
func (m *AddGuardian) Unmarshal(dAtA []byte) error
func (AddGuardian) ValidateBasic ¶
func (g AddGuardian) ValidateBasic() error
ValidateBasic validate the AddGuardian
func (*AddGuardian) XXX_DiscardUnknown ¶
func (m *AddGuardian) XXX_DiscardUnknown()
func (*AddGuardian) XXX_Marshal ¶
func (m *AddGuardian) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddGuardian) XXX_Merge ¶
func (m *AddGuardian) XXX_Merge(src proto.Message)
func (*AddGuardian) XXX_Size ¶
func (m *AddGuardian) XXX_Size() int
func (*AddGuardian) XXX_Unmarshal ¶
func (m *AddGuardian) XXX_Unmarshal(b []byte) error
type DeleteGuardian ¶
type DeleteGuardian struct { Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` DeletedBy github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 161-byte string literal not displayed */ }
DeleteGuardian defines the properties of delete guardian message
func (*DeleteGuardian) Descriptor ¶
func (*DeleteGuardian) Descriptor() ([]byte, []int)
func (*DeleteGuardian) GetAddress ¶
func (m *DeleteGuardian) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*DeleteGuardian) GetDeletedBy ¶
func (m *DeleteGuardian) GetDeletedBy() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*DeleteGuardian) Marshal ¶
func (m *DeleteGuardian) Marshal() (dAtA []byte, err error)
func (*DeleteGuardian) MarshalToSizedBuffer ¶
func (m *DeleteGuardian) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteGuardian) ProtoMessage ¶
func (*DeleteGuardian) ProtoMessage()
func (*DeleteGuardian) Reset ¶
func (m *DeleteGuardian) Reset()
func (*DeleteGuardian) Size ¶
func (m *DeleteGuardian) Size() (n int)
func (*DeleteGuardian) String ¶
func (m *DeleteGuardian) String() string
func (*DeleteGuardian) Unmarshal ¶
func (m *DeleteGuardian) Unmarshal(dAtA []byte) error
func (DeleteGuardian) ValidateBasic ¶
func (g DeleteGuardian) ValidateBasic() error
ValidateBasic validate the DeleteGuardian
func (*DeleteGuardian) XXX_DiscardUnknown ¶
func (m *DeleteGuardian) XXX_DiscardUnknown()
func (*DeleteGuardian) XXX_Marshal ¶
func (m *DeleteGuardian) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteGuardian) XXX_Merge ¶
func (m *DeleteGuardian) XXX_Merge(src proto.Message)
func (*DeleteGuardian) XXX_Size ¶
func (m *DeleteGuardian) XXX_Size() int
func (*DeleteGuardian) XXX_Unmarshal ¶
func (m *DeleteGuardian) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Profilers []Guardian `protobuf:"bytes,1,rep,name=profilers,proto3" json:"profilers"` Trustees []Guardian `protobuf:"bytes,2,rep,name=trustees,proto3" json:"trustees"` }
GenesisState defines the guardian module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets raw genesis raw message for testing
func NewGenesisState ¶
func NewGenesisState(profilers, trustees []Guardian) *GenesisState
NewGenesisState constructs a GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetProfilers ¶
func (m *GenesisState) GetProfilers() []Guardian
func (*GenesisState) GetTrustees ¶
func (m *GenesisState) GetTrustees() []Guardian
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Guardian ¶
type Guardian struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` AccountType AccountType `` /* 149-byte string literal not displayed */ Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,3,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` AddedBy github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 153-byte string literal not displayed */ }
Guardian defines the guardian standard
func NewGuardian ¶
func NewGuardian(description string, accountType AccountType, address, addedBy sdk.AccAddress) Guardian
NewGuardian constructs a Guardian
func (*Guardian) Descriptor ¶
func (*Guardian) GetAccountType ¶
func (m *Guardian) GetAccountType() AccountType
func (*Guardian) GetAddedBy ¶
func (m *Guardian) GetAddedBy() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*Guardian) GetAddress ¶
func (m *Guardian) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*Guardian) GetDescription ¶
func (*Guardian) MarshalToSizedBuffer ¶
func (*Guardian) ProtoMessage ¶
func (*Guardian) ProtoMessage()
func (*Guardian) XXX_DiscardUnknown ¶
func (m *Guardian) XXX_DiscardUnknown()
func (*Guardian) XXX_Marshal ¶
func (*Guardian) XXX_Unmarshal ¶
type GuardianI ¶
type GuardianI interface { GetDescription() string GetAccountType() AccountType GetAddress() sdk.AccAddress GetAddedBy() sdk.AccAddress }
type MsgAddProfiler ¶
type MsgAddProfiler struct {
AddGuardian AddGuardian `protobuf:"bytes,1,opt,name=add_guardian,json=addGuardian,proto3" json:"add_guardian" yaml:"add_guardian"`
}
MsgAddProfiler defines an sdk.Msg type that supports adding profiler
func NewMsgAddProfiler ¶
func NewMsgAddProfiler(description string, address, addedBy sdk.AccAddress) *MsgAddProfiler
NewMsgAddProfiler constructs a MsgAddProfiler
func (*MsgAddProfiler) Descriptor ¶
func (*MsgAddProfiler) Descriptor() ([]byte, []int)
func (*MsgAddProfiler) GetAddGuardian ¶
func (m *MsgAddProfiler) GetAddGuardian() AddGuardian
func (MsgAddProfiler) GetSignBytes ¶
func (msg MsgAddProfiler) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgAddProfiler) GetSigners ¶
func (msg MsgAddProfiler) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgAddProfiler) Marshal ¶
func (m *MsgAddProfiler) Marshal() (dAtA []byte, err error)
func (*MsgAddProfiler) MarshalToSizedBuffer ¶
func (m *MsgAddProfiler) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddProfiler) ProtoMessage ¶
func (*MsgAddProfiler) ProtoMessage()
func (*MsgAddProfiler) Reset ¶
func (m *MsgAddProfiler) Reset()
func (*MsgAddProfiler) Size ¶
func (m *MsgAddProfiler) Size() (n int)
func (*MsgAddProfiler) String ¶
func (m *MsgAddProfiler) String() string
func (*MsgAddProfiler) Unmarshal ¶
func (m *MsgAddProfiler) Unmarshal(dAtA []byte) error
func (MsgAddProfiler) ValidateBasic ¶
func (msg MsgAddProfiler) ValidateBasic() error
ValidateBasic implements Msg.
func (*MsgAddProfiler) XXX_DiscardUnknown ¶
func (m *MsgAddProfiler) XXX_DiscardUnknown()
func (*MsgAddProfiler) XXX_Marshal ¶
func (m *MsgAddProfiler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddProfiler) XXX_Merge ¶
func (m *MsgAddProfiler) XXX_Merge(src proto.Message)
func (*MsgAddProfiler) XXX_Size ¶
func (m *MsgAddProfiler) XXX_Size() int
func (*MsgAddProfiler) XXX_Unmarshal ¶
func (m *MsgAddProfiler) XXX_Unmarshal(b []byte) error
type MsgAddTrustee ¶
type MsgAddTrustee struct {
AddGuardian AddGuardian `protobuf:"bytes,1,opt,name=add_guardian,json=addGuardian,proto3" json:"add_guardian" yaml:"add_guardian"`
}
MsgAddTrustee defines an sdk.Msg type that supports adding trustee
func NewMsgAddTrustee ¶
func NewMsgAddTrustee(description string, address, addedAddress sdk.AccAddress) *MsgAddTrustee
NewMsgAddTrustee constructs a MsgAddTrustee
func (*MsgAddTrustee) Descriptor ¶
func (*MsgAddTrustee) Descriptor() ([]byte, []int)
func (*MsgAddTrustee) GetAddGuardian ¶
func (m *MsgAddTrustee) GetAddGuardian() AddGuardian
func (MsgAddTrustee) GetSignBytes ¶
func (msg MsgAddTrustee) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgAddTrustee) GetSigners ¶
func (msg MsgAddTrustee) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgAddTrustee) Marshal ¶
func (m *MsgAddTrustee) Marshal() (dAtA []byte, err error)
func (*MsgAddTrustee) MarshalToSizedBuffer ¶
func (m *MsgAddTrustee) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddTrustee) ProtoMessage ¶
func (*MsgAddTrustee) ProtoMessage()
func (*MsgAddTrustee) Reset ¶
func (m *MsgAddTrustee) Reset()
func (*MsgAddTrustee) Size ¶
func (m *MsgAddTrustee) Size() (n int)
func (*MsgAddTrustee) String ¶
func (m *MsgAddTrustee) String() string
func (*MsgAddTrustee) Unmarshal ¶
func (m *MsgAddTrustee) Unmarshal(dAtA []byte) error
func (MsgAddTrustee) ValidateBasic ¶
func (msg MsgAddTrustee) ValidateBasic() error
ValidateBasic implements Msg.
func (*MsgAddTrustee) XXX_DiscardUnknown ¶
func (m *MsgAddTrustee) XXX_DiscardUnknown()
func (*MsgAddTrustee) XXX_Marshal ¶
func (m *MsgAddTrustee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddTrustee) XXX_Merge ¶
func (m *MsgAddTrustee) XXX_Merge(src proto.Message)
func (*MsgAddTrustee) XXX_Size ¶
func (m *MsgAddTrustee) XXX_Size() int
func (*MsgAddTrustee) XXX_Unmarshal ¶
func (m *MsgAddTrustee) XXX_Unmarshal(b []byte) error
type MsgDeleteProfiler ¶
type MsgDeleteProfiler struct {
DeleteGuardian DeleteGuardian `protobuf:"bytes,1,opt,name=delete_guardian,json=deleteGuardian,proto3" json:"delete_guardian" yaml:"delete_guardian"`
}
MsgDeleteProfiler defines an sdk.Msg type that supports deleting profiler
func NewMsgDeleteProfiler ¶
func NewMsgDeleteProfiler(address, deletedBy sdk.AccAddress) *MsgDeleteProfiler
NewMsgDeleteProfiler constructs a MsgDeleteProfiler
func (*MsgDeleteProfiler) Descriptor ¶
func (*MsgDeleteProfiler) Descriptor() ([]byte, []int)
func (*MsgDeleteProfiler) GetDeleteGuardian ¶
func (m *MsgDeleteProfiler) GetDeleteGuardian() DeleteGuardian
func (MsgDeleteProfiler) GetSignBytes ¶
func (msg MsgDeleteProfiler) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgDeleteProfiler) GetSigners ¶
func (msg MsgDeleteProfiler) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgDeleteProfiler) Marshal ¶
func (m *MsgDeleteProfiler) Marshal() (dAtA []byte, err error)
func (*MsgDeleteProfiler) MarshalTo ¶
func (m *MsgDeleteProfiler) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteProfiler) MarshalToSizedBuffer ¶
func (m *MsgDeleteProfiler) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteProfiler) ProtoMessage ¶
func (*MsgDeleteProfiler) ProtoMessage()
func (*MsgDeleteProfiler) Reset ¶
func (m *MsgDeleteProfiler) Reset()
func (*MsgDeleteProfiler) Size ¶
func (m *MsgDeleteProfiler) Size() (n int)
func (*MsgDeleteProfiler) String ¶
func (m *MsgDeleteProfiler) String() string
func (*MsgDeleteProfiler) Unmarshal ¶
func (m *MsgDeleteProfiler) Unmarshal(dAtA []byte) error
func (MsgDeleteProfiler) ValidateBasic ¶
func (msg MsgDeleteProfiler) ValidateBasic() error
RoValidateBasicute implements Msg.
func (*MsgDeleteProfiler) XXX_DiscardUnknown ¶
func (m *MsgDeleteProfiler) XXX_DiscardUnknown()
func (*MsgDeleteProfiler) XXX_Marshal ¶
func (m *MsgDeleteProfiler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteProfiler) XXX_Merge ¶
func (m *MsgDeleteProfiler) XXX_Merge(src proto.Message)
func (*MsgDeleteProfiler) XXX_Size ¶
func (m *MsgDeleteProfiler) XXX_Size() int
func (*MsgDeleteProfiler) XXX_Unmarshal ¶
func (m *MsgDeleteProfiler) XXX_Unmarshal(b []byte) error
type MsgDeleteTrustee ¶
type MsgDeleteTrustee struct {
DeleteGuardian DeleteGuardian `protobuf:"bytes,1,opt,name=delete_guardian,json=deleteGuardian,proto3" json:"delete_guardian" yaml:"delete_guardian"`
}
MsgDeleteTrustee defines an sdk.Msg type that supports deleting trustee
func NewMsgDeleteTrustee ¶
func NewMsgDeleteTrustee(address, deletedBy sdk.AccAddress) *MsgDeleteTrustee
NewMsgDeleteTrustee constructs a MsgDeleteTrustee
func (*MsgDeleteTrustee) Descriptor ¶
func (*MsgDeleteTrustee) Descriptor() ([]byte, []int)
func (*MsgDeleteTrustee) GetDeleteGuardian ¶
func (m *MsgDeleteTrustee) GetDeleteGuardian() DeleteGuardian
func (MsgDeleteTrustee) GetSignBytes ¶
func (msg MsgDeleteTrustee) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgDeleteTrustee) GetSigners ¶
func (msg MsgDeleteTrustee) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgDeleteTrustee) Marshal ¶
func (m *MsgDeleteTrustee) Marshal() (dAtA []byte, err error)
func (*MsgDeleteTrustee) MarshalToSizedBuffer ¶
func (m *MsgDeleteTrustee) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteTrustee) ProtoMessage ¶
func (*MsgDeleteTrustee) ProtoMessage()
func (*MsgDeleteTrustee) Reset ¶
func (m *MsgDeleteTrustee) Reset()
func (*MsgDeleteTrustee) Size ¶
func (m *MsgDeleteTrustee) Size() (n int)
func (*MsgDeleteTrustee) String ¶
func (m *MsgDeleteTrustee) String() string
func (*MsgDeleteTrustee) Unmarshal ¶
func (m *MsgDeleteTrustee) Unmarshal(dAtA []byte) error
func (MsgDeleteTrustee) ValidateBasic ¶
func (msg MsgDeleteTrustee) ValidateBasic() error
ValidateBasic implements Msg.
func (*MsgDeleteTrustee) XXX_DiscardUnknown ¶
func (m *MsgDeleteTrustee) XXX_DiscardUnknown()
func (*MsgDeleteTrustee) XXX_Marshal ¶
func (m *MsgDeleteTrustee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteTrustee) XXX_Merge ¶
func (m *MsgDeleteTrustee) XXX_Merge(src proto.Message)
func (*MsgDeleteTrustee) XXX_Size ¶
func (m *MsgDeleteTrustee) XXX_Size() int
func (*MsgDeleteTrustee) XXX_Unmarshal ¶
func (m *MsgDeleteTrustee) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Profilers returns all profilers Profilers(ctx context.Context, in *QueryProfilersRequest, opts ...grpc.CallOption) (*QueryProfilersResponse, error) // Trustees returns all trustees Trustees(ctx context.Context, in *QueryTrusteesRequest, opts ...grpc.CallOption) (*QueryTrusteesResponse, 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 QueryProfilersRequest ¶
type QueryProfilersRequest struct { }
QueryProfilersRequest is request type for the Query/Profilers RPC method
func (*QueryProfilersRequest) Descriptor ¶
func (*QueryProfilersRequest) Descriptor() ([]byte, []int)
func (*QueryProfilersRequest) Marshal ¶
func (m *QueryProfilersRequest) Marshal() (dAtA []byte, err error)
func (*QueryProfilersRequest) MarshalTo ¶
func (m *QueryProfilersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProfilersRequest) MarshalToSizedBuffer ¶
func (m *QueryProfilersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProfilersRequest) ProtoMessage ¶
func (*QueryProfilersRequest) ProtoMessage()
func (*QueryProfilersRequest) Reset ¶
func (m *QueryProfilersRequest) Reset()
func (*QueryProfilersRequest) Size ¶
func (m *QueryProfilersRequest) Size() (n int)
func (*QueryProfilersRequest) String ¶
func (m *QueryProfilersRequest) String() string
func (*QueryProfilersRequest) Unmarshal ¶
func (m *QueryProfilersRequest) Unmarshal(dAtA []byte) error
func (*QueryProfilersRequest) XXX_DiscardUnknown ¶
func (m *QueryProfilersRequest) XXX_DiscardUnknown()
func (*QueryProfilersRequest) XXX_Marshal ¶
func (m *QueryProfilersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProfilersRequest) XXX_Merge ¶
func (m *QueryProfilersRequest) XXX_Merge(src proto.Message)
func (*QueryProfilersRequest) XXX_Size ¶
func (m *QueryProfilersRequest) XXX_Size() int
func (*QueryProfilersRequest) XXX_Unmarshal ¶
func (m *QueryProfilersRequest) XXX_Unmarshal(b []byte) error
type QueryProfilersResponse ¶
type QueryProfilersResponse struct {
Profilers []Guardian `protobuf:"bytes,1,rep,name=profilers,proto3" json:"profilers"`
}
QueryProfilersResponse is response type for the Query/Profilers RPC method
func (*QueryProfilersResponse) Descriptor ¶
func (*QueryProfilersResponse) Descriptor() ([]byte, []int)
func (*QueryProfilersResponse) GetProfilers ¶
func (m *QueryProfilersResponse) GetProfilers() []Guardian
func (*QueryProfilersResponse) Marshal ¶
func (m *QueryProfilersResponse) Marshal() (dAtA []byte, err error)
func (*QueryProfilersResponse) MarshalTo ¶
func (m *QueryProfilersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProfilersResponse) MarshalToSizedBuffer ¶
func (m *QueryProfilersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProfilersResponse) ProtoMessage ¶
func (*QueryProfilersResponse) ProtoMessage()
func (*QueryProfilersResponse) Reset ¶
func (m *QueryProfilersResponse) Reset()
func (*QueryProfilersResponse) Size ¶
func (m *QueryProfilersResponse) Size() (n int)
func (*QueryProfilersResponse) String ¶
func (m *QueryProfilersResponse) String() string
func (*QueryProfilersResponse) Unmarshal ¶
func (m *QueryProfilersResponse) Unmarshal(dAtA []byte) error
func (*QueryProfilersResponse) XXX_DiscardUnknown ¶
func (m *QueryProfilersResponse) XXX_DiscardUnknown()
func (*QueryProfilersResponse) XXX_Marshal ¶
func (m *QueryProfilersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProfilersResponse) XXX_Merge ¶
func (m *QueryProfilersResponse) XXX_Merge(src proto.Message)
func (*QueryProfilersResponse) XXX_Size ¶
func (m *QueryProfilersResponse) XXX_Size() int
func (*QueryProfilersResponse) XXX_Unmarshal ¶
func (m *QueryProfilersResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Profilers returns all profilers Profilers(context.Context, *QueryProfilersRequest) (*QueryProfilersResponse, error) // Trustees returns all trustees Trustees(context.Context, *QueryTrusteesRequest) (*QueryTrusteesResponse, error) }
QueryServer is the server API for Query service.
type QueryTrusteesRequest ¶
type QueryTrusteesRequest struct { }
QueryTrusteesRequest is request type for the Query/Trustees RPC method
func (*QueryTrusteesRequest) Descriptor ¶
func (*QueryTrusteesRequest) Descriptor() ([]byte, []int)
func (*QueryTrusteesRequest) Marshal ¶
func (m *QueryTrusteesRequest) Marshal() (dAtA []byte, err error)
func (*QueryTrusteesRequest) MarshalTo ¶
func (m *QueryTrusteesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTrusteesRequest) MarshalToSizedBuffer ¶
func (m *QueryTrusteesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTrusteesRequest) ProtoMessage ¶
func (*QueryTrusteesRequest) ProtoMessage()
func (*QueryTrusteesRequest) Reset ¶
func (m *QueryTrusteesRequest) Reset()
func (*QueryTrusteesRequest) Size ¶
func (m *QueryTrusteesRequest) Size() (n int)
func (*QueryTrusteesRequest) String ¶
func (m *QueryTrusteesRequest) String() string
func (*QueryTrusteesRequest) Unmarshal ¶
func (m *QueryTrusteesRequest) Unmarshal(dAtA []byte) error
func (*QueryTrusteesRequest) XXX_DiscardUnknown ¶
func (m *QueryTrusteesRequest) XXX_DiscardUnknown()
func (*QueryTrusteesRequest) XXX_Marshal ¶
func (m *QueryTrusteesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTrusteesRequest) XXX_Merge ¶
func (m *QueryTrusteesRequest) XXX_Merge(src proto.Message)
func (*QueryTrusteesRequest) XXX_Size ¶
func (m *QueryTrusteesRequest) XXX_Size() int
func (*QueryTrusteesRequest) XXX_Unmarshal ¶
func (m *QueryTrusteesRequest) XXX_Unmarshal(b []byte) error
type QueryTrusteesResponse ¶
type QueryTrusteesResponse struct {
Trustees []Guardian `protobuf:"bytes,1,rep,name=trustees,proto3" json:"trustees"`
}
QueryTrusteesResponse is response type for the Query/Trustees RPC method
func (*QueryTrusteesResponse) Descriptor ¶
func (*QueryTrusteesResponse) Descriptor() ([]byte, []int)
func (*QueryTrusteesResponse) GetTrustees ¶
func (m *QueryTrusteesResponse) GetTrustees() []Guardian
func (*QueryTrusteesResponse) Marshal ¶
func (m *QueryTrusteesResponse) Marshal() (dAtA []byte, err error)
func (*QueryTrusteesResponse) MarshalTo ¶
func (m *QueryTrusteesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTrusteesResponse) MarshalToSizedBuffer ¶
func (m *QueryTrusteesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTrusteesResponse) ProtoMessage ¶
func (*QueryTrusteesResponse) ProtoMessage()
func (*QueryTrusteesResponse) Reset ¶
func (m *QueryTrusteesResponse) Reset()
func (*QueryTrusteesResponse) Size ¶
func (m *QueryTrusteesResponse) Size() (n int)
func (*QueryTrusteesResponse) String ¶
func (m *QueryTrusteesResponse) String() string
func (*QueryTrusteesResponse) Unmarshal ¶
func (m *QueryTrusteesResponse) Unmarshal(dAtA []byte) error
func (*QueryTrusteesResponse) XXX_DiscardUnknown ¶
func (m *QueryTrusteesResponse) XXX_DiscardUnknown()
func (*QueryTrusteesResponse) XXX_Marshal ¶
func (m *QueryTrusteesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTrusteesResponse) XXX_Merge ¶
func (m *QueryTrusteesResponse) XXX_Merge(src proto.Message)
func (*QueryTrusteesResponse) XXX_Size ¶
func (m *QueryTrusteesResponse) XXX_Size() int
func (*QueryTrusteesResponse) XXX_Unmarshal ¶
func (m *QueryTrusteesResponse) XXX_Unmarshal(b []byte) error
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Profilers ¶
func (*UnimplementedQueryServer) Profilers(ctx context.Context, req *QueryProfilersRequest) (*QueryProfilersResponse, error)
func (*UnimplementedQueryServer) Trustees ¶
func (*UnimplementedQueryServer) Trustees(ctx context.Context, req *QueryTrusteesRequest) (*QueryTrusteesResponse, error)