types

package
v4.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 34 Imported by: 13

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateSubspace          = "create_subspace"
	EventTypeEditSubspace            = "edit_subspace"
	EventTypeDeleteSubspace          = "delete_subspace"
	EventTypeCreateSection           = "create_section"
	EventTypeEditSection             = "edit_section"
	EventTypeMoveSection             = "move_section"
	EventTypeDeleteSection           = "delete_section"
	EventTypeCreateUserGroup         = "create_user_group"
	EventTypeEditUserGroup           = "edit_user_group"
	EvenTypeMoveUserGroup            = "move_user_group"
	EventTypeSetUserGroupPermissions = "set_user_group_permissions"
	EventTypeDeleteUserGroup         = "delete_user_group"
	EventTypeAddUserToGroup          = "add_group_member"
	EventTypeRemoveUserFromGroup     = "remove_group_member"
	EventTypeSetUserPermissions      = "set_user_permissions"

	AttributeValueCategory      = ModuleName
	AttributeKeySubspaceID      = "subspace_id"
	AttributeKeySubspaceName    = "subspace_name"
	AttributeKeySubspaceCreator = "subspace_creator"
	AttributeKeyCreationTime    = "creation_date"
	AttributeKeySectionID       = "section_id"
	AttributeKeyUserGroupID     = "user_group_id"
	AttributeKeyUser            = "user"
)

Subspaces module event types

View Source
const (
	ModuleName   = "subspaces"
	RouterKey    = ModuleName
	StoreKey     = ModuleName
	QuerierRoute = ModuleName

	ActionCreateSubspace          = "create_subspace"
	ActionEditSubspace            = "edit_subspace"
	ActionDeleteSubspace          = "delete_subspace"
	ActionCreateSection           = "create_section"
	ActionEditSection             = "edit_section"
	ActionMoveSection             = "move_section"
	ActionDeleteSection           = "delete_section"
	ActionCreateUserGroup         = "create_user_group"
	ActionEditUserGroup           = "edit_user_group"
	ActionMoveUserGroup           = "move_user_group"
	ActionSetUserGroupPermissions = "set_user_group_permissions"
	ActionDeleteUserGroup         = "delete_user_group"
	ActionAddUserToUserGroup      = "add_user_to_user_group"
	ActionRemoveUserFromUserGroup = "remove_user_from_user_group"
	ActionSetUserPermissions      = "set_user_permissions"

	DoNotModify = "[do-not-modify]"
)
View Source
const (
	// RootSectionID represents the id of the root section of each subspace
	RootSectionID = 0
)

Variables

View Source
var (
	// ErrPermissionDenied is returned if a user cannot perform a specific action inside a subspace
	ErrPermissionDenied = sdkerrors.Register(ModuleName, 1, "permissions denied for user")
	ErrInvalidGenesis   = sdkerrors.Register(ModuleName, 2, "invalid genesis state")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	SubspaceIDKey              = []byte{0x00}
	SubspacePrefix             = []byte{0x01}
	GroupIDPrefix              = []byte{0x02}
	GroupsPrefix               = []byte{0x03}
	GroupsMembersPrefix        = []byte{0x04}
	UserPermissionsStorePrefix = []byte{0x05}
	SectionIDPrefix            = []byte{0x06}
	SectionsPrefix             = []byte{0x07}
)
View Source
var (
	ErrInvalidLengthModels        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModels          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// PermissionEditSubspace allows to change the information of the subspace
	PermissionEditSubspace = RegisterPermission("edit subspace")

	// PermissionDeleteSubspace allows users to delete the subspace.
	PermissionDeleteSubspace = RegisterPermission("delete subspace")

	// PermissionManageSections allows users to manage a subspace sections
	PermissionManageSections = RegisterPermission("manage sections")

	// PermissionManageGroups allows users to manage user groups and members
	PermissionManageGroups = RegisterPermission("manage groups")

	// PermissionSetPermissions allows users to set other users' permissions (except PermissionSetPermissions).
	// This includes managing user groups and the associated permissions
	PermissionSetPermissions = RegisterPermission("set permissions")

	// PermissionEverything allows to do everything.
	// This should usually be reserved only to the owner (which has it by default)
	PermissionEverything = RegisterPermission("everything")
)
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 (

	// AminoCodec references the global x/subspaces module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/subspaces and
	// defined at the application level.
	AminoCodec = codec.NewAminoCodec(amino)
)

Functions

func ArePermissionsValid

func ArePermissionsValid(permissions Permissions) bool

ArePermissionsValid checks whether the given value represents a valid permissions or not

func CheckPermission

func CheckPermission(permissions Permissions, permission Permission) bool

CheckPermission checks whether the given permissions contain the specified permissions

func CheckPermissions

func CheckPermissions(permissions Permissions, toCheck Permissions) bool

func GetAddressBytes

func GetAddressBytes(user string) []byte

GetAddressBytes returns the given user address as a byte array

func GetAddressFromBytes

func GetAddressFromBytes(bz []byte) string

GetAddressFromBytes returns the sdk.AccAddress representation of the given user address

func GetGroupIDBytes

func GetGroupIDBytes(groupID uint32) (groupIDBz []byte)

GetGroupIDBytes returns the byte representation of the groupID

func GetGroupIDFromBytes

func GetGroupIDFromBytes(bz []byte) (subspaceID uint32)

GetGroupIDFromBytes returns groupID in uint32 format from a byte array

func GetSectionIDBytes

func GetSectionIDBytes(sectionID uint32) (sectionIDBz []byte)

GetSectionIDBytes returns the byte representation of the sectionID

func GetSectionIDFromBytes

func GetSectionIDFromBytes(bz []byte) (sectionID uint32)

GetSectionIDFromBytes returns sectionID in uint32 format from a byte array

func GetSubspaceIDBytes

func GetSubspaceIDBytes(subspaceID uint64) (subspaceIDBz []byte)

GetSubspaceIDBytes returns the byte representation of the subspaceID

func GetSubspaceIDFromBytes

func GetSubspaceIDFromBytes(bz []byte) (subspaceID uint64)

GetSubspaceIDFromBytes returns subspaceID in uint64 format from a byte array

func GroupMemberStoreKey

func GroupMemberStoreKey(subspaceID uint64, groupID uint32, user string) []byte

GroupMemberStoreKey returns the key used to store the membership of the given user to the specified group inside the provided subspace

func GroupMembersPrefix

func GroupMembersPrefix(subspaceID uint64, groupID uint32) []byte

GroupMembersPrefix returns the key used to store all the members of the given group inside the given subspace

func GroupStoreKey

func GroupStoreKey(subspaceID uint64, sectionID uint32, groupID uint32) []byte

GroupStoreKey returns the key used to store the group having the given id inside the specified section

func NextGroupIDStoreKey

func NextGroupIDStoreKey(subspaceID uint64) []byte

NextGroupIDStoreKey returns the store key that is used to store the group id to be used next for the given subspace

func NextSectionIDStoreKey

func NextSectionIDStoreKey(subspaceID uint64) []byte

NextSectionIDStoreKey returns the key used to store the next section id for the given subspace

func ParseGroupID

func ParseGroupID(value string) (uint32, error)

ParseGroupID parses the given value as a group id, returning an error if it's invalid

func ParseSectionID

func ParseSectionID(value string) (uint32, error)

ParseSectionID parses the given value as a section id, returning an error if it's invalid

func ParseSubspaceID

func ParseSubspaceID(value string) (uint64, error)

ParseSubspaceID parses the given value as a subspace id, returning an error if it's invalid

func ParseSubspacesIDs

func ParseSubspacesIDs(value string) (ids []uint64, err error)

ParseSubspacesIDs parses the given value as a list of subspace ids separated by a comma

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SectionGroupsPrefix

func SectionGroupsPrefix(subspaceID uint64, sectionID uint32) []byte

SectionGroupsPrefix returns the prefix used to store all the groups for the given section

func SectionPermissionsPrefix

func SectionPermissionsPrefix(subspaceID uint64, sectionID uint32) []byte

SectionPermissionsPrefix returns the prefix used to store the permissions for the given section

func SectionStoreKey

func SectionStoreKey(subspaceID uint64, sectionID uint32) []byte

SectionStoreKey returns the key used to store the given section

func SerializePermission

func SerializePermission(permission Permission) string

SerializePermission serializes the given permissions to a string value

func SplitGroupMemberStoreKey

func SplitGroupMemberStoreKey(key []byte) (subspaceID uint64, groupID uint32, user string)

SplitGroupMemberStoreKey splits the given group member store key into the associated subspace id, group id and user address

func SplitUserAddressPermissionKey

func SplitUserAddressPermissionKey(key []byte) (subspaceID uint64, sectionID uint32, user string)

SplitUserAddressPermissionKey splits a UserPermissionStoreKey into the subspace id, section id and user address

func SubspaceGroupsMembersPrefix

func SubspaceGroupsMembersPrefix(subspaceID uint64) []byte

SubspaceGroupsMembersPrefix returns the prefix used to store groups members for the subspace having the given id

func SubspaceGroupsPrefix

func SubspaceGroupsPrefix(subspaceID uint64) []byte

SubspaceGroupsPrefix returns the store prefix used to store all the groups of a given subspace

func SubspacePermissionsPrefix

func SubspacePermissionsPrefix(subspaceID uint64) []byte

SubspacePermissionsPrefix returns the prefix used to store user permissions for the given subspace

func SubspaceSectionsPrefix

func SubspaceSectionsPrefix(subspaceID uint64) []byte

SubspaceSectionsPrefix returns the prefix used to store all the sections for the given subspace

func SubspaceStoreKey

func SubspaceStoreKey(subspaceID uint64) []byte

SubspaceStoreKey returns the key for a specific subspace

func UserPermissionStoreKey

func UserPermissionStoreKey(subspaceID uint64, sectionID uint32, user string) []byte

UserPermissionStoreKey returns the key used to store the permission for the given user inside the given subspace

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis validates the given genesis state and returns an error if something is invalid

Types

type GenesisState

type GenesisState struct {
	InitialSubspaceID uint64                 `protobuf:"varint,1,opt,name=initial_subspace_id,json=initialSubspaceId,proto3" json:"initial_subspace_id,omitempty"`
	SubspacesData     []SubspaceData         `protobuf:"bytes,2,rep,name=subspaces_data,json=subspacesData,proto3" json:"subspaces_data"`
	Subspaces         []Subspace             `protobuf:"bytes,3,rep,name=subspaces,proto3" json:"subspaces"`
	Sections          []Section              `protobuf:"bytes,4,rep,name=sections,proto3" json:"sections"`
	UserPermissions   []UserPermission       `protobuf:"bytes,5,rep,name=user_permissions,json=userPermissions,proto3" json:"user_permissions"`
	UserGroups        []UserGroup            `protobuf:"bytes,6,rep,name=user_groups,json=userGroups,proto3" json:"user_groups"`
	UserGroupsMembers []UserGroupMemberEntry `protobuf:"bytes,7,rep,name=user_groups_members,json=userGroupsMembers,proto3" json:"user_groups_members"`
}

GenesisState contains the data of the genesis state for the subspaces module

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default GenesisState

func NewGenesisState

func NewGenesisState(
	initialSubspaceID uint64,
	subspacesData []SubspaceData,
	subspaces []Subspace,
	sections []Section,
	userPermissions []UserPermission,
	userGroups []UserGroup,
	userGroupMembers []UserGroupMemberEntry,
) *GenesisState

NewGenesisState creates a new genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) Equal

func (this *GenesisState) Equal(that interface{}) bool

func (*GenesisState) GetInitialSubspaceID

func (m *GenesisState) GetInitialSubspaceID() uint64

func (*GenesisState) GetSections

func (m *GenesisState) GetSections() []Section

func (*GenesisState) GetSubspaces

func (m *GenesisState) GetSubspaces() []Subspace

func (*GenesisState) GetSubspacesData

func (m *GenesisState) GetSubspacesData() []SubspaceData

func (*GenesisState) GetUserGroups

func (m *GenesisState) GetUserGroups() []UserGroup

func (*GenesisState) GetUserGroupsMembers

func (m *GenesisState) GetUserGroupsMembers() []UserGroupMemberEntry

func (*GenesisState) GetUserPermissions

func (m *GenesisState) GetUserPermissions() []UserPermission

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 GroupUpdate

type GroupUpdate struct {
	Name        string
	Description string
}

GroupUpdate contains all the data that can be updated about a group. When performing an update, if a field should not be edited then it must be set to types.DoNotModify

func NewGroupUpdate

func NewGroupUpdate(name, description string) GroupUpdate

NewGroupUpdate builds a new SubspaceUpdate instance containing the given data

type MsgAddUserToUserGroup

type MsgAddUserToUserGroup struct {
	// Id of the subspace inside which the group is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the group to which to add the user
	GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// User to be added to the group
	User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	// User signing the message
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgAddUserToUserGroup represents the message used to add a user to a user group

func NewMsgAddUserToUserGroup

func NewMsgAddUserToUserGroup(
	subspaceID uint64,
	groupID uint32,
	user string,
	signer string,
) *MsgAddUserToUserGroup

NewMsgAddUserToUserGroup creates a new MsgAddUserToUserGroup instance

func (*MsgAddUserToUserGroup) Descriptor

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

func (*MsgAddUserToUserGroup) GetGroupID

func (m *MsgAddUserToUserGroup) GetGroupID() uint32

func (MsgAddUserToUserGroup) GetSignBytes

func (msg MsgAddUserToUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgAddUserToUserGroup) GetSigner

func (m *MsgAddUserToUserGroup) GetSigner() string

func (MsgAddUserToUserGroup) GetSigners

func (msg MsgAddUserToUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgAddUserToUserGroup) GetSubspaceID

func (m *MsgAddUserToUserGroup) GetSubspaceID() uint64

func (*MsgAddUserToUserGroup) GetUser

func (m *MsgAddUserToUserGroup) GetUser() string

func (*MsgAddUserToUserGroup) Marshal

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

func (*MsgAddUserToUserGroup) MarshalTo

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

func (*MsgAddUserToUserGroup) MarshalToSizedBuffer

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

func (*MsgAddUserToUserGroup) ProtoMessage

func (*MsgAddUserToUserGroup) ProtoMessage()

func (*MsgAddUserToUserGroup) Reset

func (m *MsgAddUserToUserGroup) Reset()

func (MsgAddUserToUserGroup) Route

func (msg MsgAddUserToUserGroup) Route() string

Route implements sdk.Msg

func (*MsgAddUserToUserGroup) Size

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

func (*MsgAddUserToUserGroup) String

func (m *MsgAddUserToUserGroup) String() string

func (MsgAddUserToUserGroup) Type

func (msg MsgAddUserToUserGroup) Type() string

Type implements sdk.Msg

func (*MsgAddUserToUserGroup) Unmarshal

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

func (MsgAddUserToUserGroup) ValidateBasic

func (msg MsgAddUserToUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAddUserToUserGroup) XXX_DiscardUnknown

func (m *MsgAddUserToUserGroup) XXX_DiscardUnknown()

func (*MsgAddUserToUserGroup) XXX_Marshal

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

func (*MsgAddUserToUserGroup) XXX_Merge

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

func (*MsgAddUserToUserGroup) XXX_Size

func (m *MsgAddUserToUserGroup) XXX_Size() int

func (*MsgAddUserToUserGroup) XXX_Unmarshal

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

type MsgAddUserToUserGroupResponse

type MsgAddUserToUserGroupResponse struct {
}

MsgAddUserToUserGroupResponse defines the Msg/AddUserToUserGroupResponse response type

func (*MsgAddUserToUserGroupResponse) Descriptor

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

func (*MsgAddUserToUserGroupResponse) Marshal

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

func (*MsgAddUserToUserGroupResponse) MarshalTo

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

func (*MsgAddUserToUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgAddUserToUserGroupResponse) ProtoMessage

func (*MsgAddUserToUserGroupResponse) ProtoMessage()

func (*MsgAddUserToUserGroupResponse) Reset

func (m *MsgAddUserToUserGroupResponse) Reset()

func (*MsgAddUserToUserGroupResponse) Size

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

func (*MsgAddUserToUserGroupResponse) String

func (*MsgAddUserToUserGroupResponse) Unmarshal

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

func (*MsgAddUserToUserGroupResponse) XXX_DiscardUnknown

func (m *MsgAddUserToUserGroupResponse) XXX_DiscardUnknown()

func (*MsgAddUserToUserGroupResponse) XXX_Marshal

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

func (*MsgAddUserToUserGroupResponse) XXX_Merge

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

func (*MsgAddUserToUserGroupResponse) XXX_Size

func (m *MsgAddUserToUserGroupResponse) XXX_Size() int

func (*MsgAddUserToUserGroupResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateSubspace allows to create a subspace
	CreateSubspace(ctx context.Context, in *MsgCreateSubspace, opts ...grpc.CallOption) (*MsgCreateSubspaceResponse, error)
	// EditSubspace allows to edit a subspace
	EditSubspace(ctx context.Context, in *MsgEditSubspace, opts ...grpc.CallOption) (*MsgEditSubspaceResponse, error)
	// DeleteSubspace allows to delete a subspace
	DeleteSubspace(ctx context.Context, in *MsgDeleteSubspace, opts ...grpc.CallOption) (*MsgDeleteSubspaceResponse, error)
	// CreateSection allows to create a new subspace section
	CreateSection(ctx context.Context, in *MsgCreateSection, opts ...grpc.CallOption) (*MsgCreateSectionResponse, error)
	// EditSection allows to edit an existing section
	EditSection(ctx context.Context, in *MsgEditSection, opts ...grpc.CallOption) (*MsgEditSectionResponse, error)
	// MoveSection allows to move an existing section to another parent
	MoveSection(ctx context.Context, in *MsgMoveSection, opts ...grpc.CallOption) (*MsgMoveSectionResponse, error)
	// DeleteSection allows to delete an existing section
	DeleteSection(ctx context.Context, in *MsgDeleteSection, opts ...grpc.CallOption) (*MsgDeleteSectionResponse, error)
	// CreateUserGroup allows to create a user group
	CreateUserGroup(ctx context.Context, in *MsgCreateUserGroup, opts ...grpc.CallOption) (*MsgCreateUserGroupResponse, error)
	// EditUserGroup allows to edit a user group
	EditUserGroup(ctx context.Context, in *MsgEditUserGroup, opts ...grpc.CallOption) (*MsgEditUserGroupResponse, error)
	// MoveUserGroup allows to move a user group from a section to another
	MoveUserGroup(ctx context.Context, in *MsgMoveUserGroup, opts ...grpc.CallOption) (*MsgMoveUserGroupResponse, error)
	// SetUserGroupPermissions allows to set the permissions for a specific group
	SetUserGroupPermissions(ctx context.Context, in *MsgSetUserGroupPermissions, opts ...grpc.CallOption) (*MsgSetUserGroupPermissionsResponse, error)
	// DeleteUserGroup allows to delete an existing user group
	DeleteUserGroup(ctx context.Context, in *MsgDeleteUserGroup, opts ...grpc.CallOption) (*MsgDeleteUserGroupResponse, error)
	// AddUserToUserGroup allows to add a specific user to a specific user group
	AddUserToUserGroup(ctx context.Context, in *MsgAddUserToUserGroup, opts ...grpc.CallOption) (*MsgAddUserToUserGroupResponse, error)
	// RemoveUserFromUserGroup allows to remove a specific user from a specific
	// user group
	RemoveUserFromUserGroup(ctx context.Context, in *MsgRemoveUserFromUserGroup, opts ...grpc.CallOption) (*MsgRemoveUserFromUserGroupResponse, error)
	// SetUserPermissions allows to set the permissions for a specific user
	SetUserPermissions(ctx context.Context, in *MsgSetUserPermissions, opts ...grpc.CallOption) (*MsgSetUserPermissionsResponse, 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 MsgCreateSection

type MsgCreateSection struct {
	// Id of the subspace inside which the section will be placed
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Name of the section to be created
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// (optional) Description of the section
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// (optional) Id of the parent section
	ParentID uint32 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty" yaml:"parent_id"`
	// User creating the section
	Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgCreateSection represents the message to be used when creating a subspace section

func NewMsgCreateSection

func NewMsgCreateSection(
	subspaceID uint64,
	name string,
	description string,
	parentID uint32,
	creator string,
) *MsgCreateSection

NewMsgCreateSection returns a new MsgCreateSection instance

func (*MsgCreateSection) Descriptor

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

func (*MsgCreateSection) GetCreator

func (m *MsgCreateSection) GetCreator() string

func (*MsgCreateSection) GetDescription

func (m *MsgCreateSection) GetDescription() string

func (*MsgCreateSection) GetName

func (m *MsgCreateSection) GetName() string

func (*MsgCreateSection) GetParentID

func (m *MsgCreateSection) GetParentID() uint32

func (MsgCreateSection) GetSignBytes

func (msg MsgCreateSection) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgCreateSection) GetSigners

func (msg MsgCreateSection) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgCreateSection) GetSubspaceID

func (m *MsgCreateSection) GetSubspaceID() uint64

func (*MsgCreateSection) Marshal

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

func (*MsgCreateSection) MarshalTo

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

func (*MsgCreateSection) MarshalToSizedBuffer

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

func (*MsgCreateSection) ProtoMessage

func (*MsgCreateSection) ProtoMessage()

func (*MsgCreateSection) Reset

func (m *MsgCreateSection) Reset()

func (MsgCreateSection) Route

func (msg MsgCreateSection) Route() string

Route implements sdk.Msg

func (*MsgCreateSection) Size

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

func (*MsgCreateSection) String

func (m *MsgCreateSection) String() string

func (MsgCreateSection) Type

func (msg MsgCreateSection) Type() string

Type implements sdk.Msg

func (*MsgCreateSection) Unmarshal

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

func (MsgCreateSection) ValidateBasic

func (msg MsgCreateSection) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgCreateSection) XXX_DiscardUnknown

func (m *MsgCreateSection) XXX_DiscardUnknown()

func (*MsgCreateSection) XXX_Marshal

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

func (*MsgCreateSection) XXX_Merge

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

func (*MsgCreateSection) XXX_Size

func (m *MsgCreateSection) XXX_Size() int

func (*MsgCreateSection) XXX_Unmarshal

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

type MsgCreateSectionResponse

type MsgCreateSectionResponse struct {
	// Id of the newly created section
	SectionID uint32 `protobuf:"varint,1,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
}

MsgCreateSectionResponse represents the Msg/CreateSection response type

func (*MsgCreateSectionResponse) Descriptor

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

func (*MsgCreateSectionResponse) GetSectionID

func (m *MsgCreateSectionResponse) GetSectionID() uint32

func (*MsgCreateSectionResponse) Marshal

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

func (*MsgCreateSectionResponse) MarshalTo

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

func (*MsgCreateSectionResponse) MarshalToSizedBuffer

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

func (*MsgCreateSectionResponse) ProtoMessage

func (*MsgCreateSectionResponse) ProtoMessage()

func (*MsgCreateSectionResponse) Reset

func (m *MsgCreateSectionResponse) Reset()

func (*MsgCreateSectionResponse) Size

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

func (*MsgCreateSectionResponse) String

func (m *MsgCreateSectionResponse) String() string

func (*MsgCreateSectionResponse) Unmarshal

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

func (*MsgCreateSectionResponse) XXX_DiscardUnknown

func (m *MsgCreateSectionResponse) XXX_DiscardUnknown()

func (*MsgCreateSectionResponse) XXX_Marshal

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

func (*MsgCreateSectionResponse) XXX_Merge

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

func (*MsgCreateSectionResponse) XXX_Size

func (m *MsgCreateSectionResponse) XXX_Size() int

func (*MsgCreateSectionResponse) XXX_Unmarshal

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

type MsgCreateSubspace

type MsgCreateSubspace struct {
	// Name of the subspace
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// (optional) Description of the subspace
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// (optional) Treasury address associated to this subspace
	Treasury string `protobuf:"bytes,3,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"`
	// (optional) Owner of this subspace. If not specified, the creator will be
	// the default owner.
	Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// Address creating the subspace
	Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgCreateSubspace represents the message used to create a subspace

func NewMsgCreateSubspace

func NewMsgCreateSubspace(
	name string,
	description string,
	treasury string,
	owner string,
	creator string,
) *MsgCreateSubspace

NewMsgCreateSubspace creates a new MsgCreateSubspace instance

func (*MsgCreateSubspace) Descriptor

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

func (*MsgCreateSubspace) GetCreator added in v4.4.0

func (m *MsgCreateSubspace) GetCreator() string

func (*MsgCreateSubspace) GetDescription added in v4.4.0

func (m *MsgCreateSubspace) GetDescription() string

func (*MsgCreateSubspace) GetName added in v4.4.0

func (m *MsgCreateSubspace) GetName() string

func (*MsgCreateSubspace) GetOwner added in v4.4.0

func (m *MsgCreateSubspace) GetOwner() string

func (MsgCreateSubspace) GetSignBytes

func (msg MsgCreateSubspace) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgCreateSubspace) GetSigners

func (msg MsgCreateSubspace) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgCreateSubspace) GetTreasury added in v4.4.0

func (m *MsgCreateSubspace) GetTreasury() string

func (*MsgCreateSubspace) Marshal

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

func (*MsgCreateSubspace) MarshalTo

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

func (*MsgCreateSubspace) MarshalToSizedBuffer

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

func (*MsgCreateSubspace) ProtoMessage

func (*MsgCreateSubspace) ProtoMessage()

func (*MsgCreateSubspace) Reset

func (m *MsgCreateSubspace) Reset()

func (MsgCreateSubspace) Route

func (msg MsgCreateSubspace) Route() string

Route implements sdk.Msg

func (*MsgCreateSubspace) Size

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

func (*MsgCreateSubspace) String

func (m *MsgCreateSubspace) String() string

func (MsgCreateSubspace) Type

func (msg MsgCreateSubspace) Type() string

Type implements sdk.Msg

func (*MsgCreateSubspace) Unmarshal

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

func (MsgCreateSubspace) ValidateBasic

func (msg MsgCreateSubspace) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgCreateSubspace) XXX_DiscardUnknown

func (m *MsgCreateSubspace) XXX_DiscardUnknown()

func (*MsgCreateSubspace) XXX_Marshal

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

func (*MsgCreateSubspace) XXX_Merge

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

func (*MsgCreateSubspace) XXX_Size

func (m *MsgCreateSubspace) XXX_Size() int

func (*MsgCreateSubspace) XXX_Unmarshal

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

type MsgCreateSubspaceResponse

type MsgCreateSubspaceResponse struct {
	// Id of the newly created subspace id
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
}

MsgCreateSubspaceResponse defines the Msg/CreateSubspace response type

func (*MsgCreateSubspaceResponse) Descriptor

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

func (*MsgCreateSubspaceResponse) GetSubspaceID

func (m *MsgCreateSubspaceResponse) GetSubspaceID() uint64

func (*MsgCreateSubspaceResponse) Marshal

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

func (*MsgCreateSubspaceResponse) MarshalTo

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

func (*MsgCreateSubspaceResponse) MarshalToSizedBuffer

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

func (*MsgCreateSubspaceResponse) ProtoMessage

func (*MsgCreateSubspaceResponse) ProtoMessage()

func (*MsgCreateSubspaceResponse) Reset

func (m *MsgCreateSubspaceResponse) Reset()

func (*MsgCreateSubspaceResponse) Size

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

func (*MsgCreateSubspaceResponse) String

func (m *MsgCreateSubspaceResponse) String() string

func (*MsgCreateSubspaceResponse) Unmarshal

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

func (*MsgCreateSubspaceResponse) XXX_DiscardUnknown

func (m *MsgCreateSubspaceResponse) XXX_DiscardUnknown()

func (*MsgCreateSubspaceResponse) XXX_Marshal

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

func (*MsgCreateSubspaceResponse) XXX_Merge

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

func (*MsgCreateSubspaceResponse) XXX_Size

func (m *MsgCreateSubspaceResponse) XXX_Size() int

func (*MsgCreateSubspaceResponse) XXX_Unmarshal

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

type MsgCreateUserGroup

type MsgCreateUserGroup struct {
	// Id of the subspace inside which the group will be created
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// (optional) Id of the section inside which the group will be created
	SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// Name of the group
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// (optional) Description of the group
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// Default permissions to be applied to the group
	DefaultPermissions []string `` /* 142-byte string literal not displayed */
	// Initial members to be put inside the group
	InitialMembers []string `` /* 126-byte string literal not displayed */
	// Creator of the group
	Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgCreateUserGroup represents the message used to create a user group

func NewMsgCreateUserGroup

func NewMsgCreateUserGroup(
	subspaceID uint64,
	sectionID uint32,
	name string,
	description string,
	permissions Permissions,
	initialMembers []string,
	creator string,
) *MsgCreateUserGroup

NewMsgCreateUserGroup creates a new MsgCreateUserGroup instance

func (*MsgCreateUserGroup) Descriptor

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

func (*MsgCreateUserGroup) GetCreator

func (m *MsgCreateUserGroup) GetCreator() string

func (*MsgCreateUserGroup) GetDefaultPermissions

func (m *MsgCreateUserGroup) GetDefaultPermissions() []string

func (*MsgCreateUserGroup) GetDescription

func (m *MsgCreateUserGroup) GetDescription() string

func (*MsgCreateUserGroup) GetInitialMembers added in v4.2.0

func (m *MsgCreateUserGroup) GetInitialMembers() []string

func (*MsgCreateUserGroup) GetName

func (m *MsgCreateUserGroup) GetName() string

func (*MsgCreateUserGroup) GetSectionID

func (m *MsgCreateUserGroup) GetSectionID() uint32

func (MsgCreateUserGroup) GetSignBytes

func (msg MsgCreateUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgCreateUserGroup) GetSigners

func (msg MsgCreateUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgCreateUserGroup) GetSubspaceID

func (m *MsgCreateUserGroup) GetSubspaceID() uint64

func (*MsgCreateUserGroup) Marshal

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

func (*MsgCreateUserGroup) MarshalTo

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

func (*MsgCreateUserGroup) MarshalToSizedBuffer

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

func (*MsgCreateUserGroup) ProtoMessage

func (*MsgCreateUserGroup) ProtoMessage()

func (*MsgCreateUserGroup) Reset

func (m *MsgCreateUserGroup) Reset()

func (MsgCreateUserGroup) Route

func (msg MsgCreateUserGroup) Route() string

Route implements sdk.Msg

func (*MsgCreateUserGroup) Size

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

func (*MsgCreateUserGroup) String

func (m *MsgCreateUserGroup) String() string

func (MsgCreateUserGroup) Type

func (msg MsgCreateUserGroup) Type() string

Type implements sdk.Msg

func (*MsgCreateUserGroup) Unmarshal

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

func (MsgCreateUserGroup) ValidateBasic

func (msg MsgCreateUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgCreateUserGroup) XXX_DiscardUnknown

func (m *MsgCreateUserGroup) XXX_DiscardUnknown()

func (*MsgCreateUserGroup) XXX_Marshal

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

func (*MsgCreateUserGroup) XXX_Merge

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

func (*MsgCreateUserGroup) XXX_Size

func (m *MsgCreateUserGroup) XXX_Size() int

func (*MsgCreateUserGroup) XXX_Unmarshal

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

type MsgCreateUserGroupResponse

type MsgCreateUserGroupResponse struct {
	GroupID uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
}

MsgCreateUserGroupResponse defines the Msg/CreateUserGroup response type

func (*MsgCreateUserGroupResponse) Descriptor

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

func (*MsgCreateUserGroupResponse) GetGroupID

func (m *MsgCreateUserGroupResponse) GetGroupID() uint32

func (*MsgCreateUserGroupResponse) Marshal

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

func (*MsgCreateUserGroupResponse) MarshalTo

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

func (*MsgCreateUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgCreateUserGroupResponse) ProtoMessage

func (*MsgCreateUserGroupResponse) ProtoMessage()

func (*MsgCreateUserGroupResponse) Reset

func (m *MsgCreateUserGroupResponse) Reset()

func (*MsgCreateUserGroupResponse) Size

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

func (*MsgCreateUserGroupResponse) String

func (m *MsgCreateUserGroupResponse) String() string

func (*MsgCreateUserGroupResponse) Unmarshal

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

func (*MsgCreateUserGroupResponse) XXX_DiscardUnknown

func (m *MsgCreateUserGroupResponse) XXX_DiscardUnknown()

func (*MsgCreateUserGroupResponse) XXX_Marshal

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

func (*MsgCreateUserGroupResponse) XXX_Merge

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

func (*MsgCreateUserGroupResponse) XXX_Size

func (m *MsgCreateUserGroupResponse) XXX_Size() int

func (*MsgCreateUserGroupResponse) XXX_Unmarshal

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

type MsgDeleteSection

type MsgDeleteSection struct {
	// Id of the subspace inside which the section to be deleted is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the section to delete
	SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// User deleting the section
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgDeleteSection represents the message to be used when deleting a section

func NewMsgDeleteSection

func NewMsgDeleteSection(subspaceID uint64, sectionID uint32, signer string) *MsgDeleteSection

NewMsgDeleteSection returns a new MsgDeleteSection instance

func (*MsgDeleteSection) Descriptor

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

func (*MsgDeleteSection) GetSectionID

func (m *MsgDeleteSection) GetSectionID() uint32

func (MsgDeleteSection) GetSignBytes

func (msg MsgDeleteSection) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgDeleteSection) GetSigner

func (m *MsgDeleteSection) GetSigner() string

func (MsgDeleteSection) GetSigners

func (msg MsgDeleteSection) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDeleteSection) GetSubspaceID

func (m *MsgDeleteSection) GetSubspaceID() uint64

func (*MsgDeleteSection) Marshal

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

func (*MsgDeleteSection) MarshalTo

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

func (*MsgDeleteSection) MarshalToSizedBuffer

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

func (*MsgDeleteSection) ProtoMessage

func (*MsgDeleteSection) ProtoMessage()

func (*MsgDeleteSection) Reset

func (m *MsgDeleteSection) Reset()

func (MsgDeleteSection) Route

func (msg MsgDeleteSection) Route() string

Route implements sdk.Msg

func (*MsgDeleteSection) Size

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

func (*MsgDeleteSection) String

func (m *MsgDeleteSection) String() string

func (MsgDeleteSection) Type

func (msg MsgDeleteSection) Type() string

Type implements sdk.Msg

func (*MsgDeleteSection) Unmarshal

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

func (MsgDeleteSection) ValidateBasic

func (msg MsgDeleteSection) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDeleteSection) XXX_DiscardUnknown

func (m *MsgDeleteSection) XXX_DiscardUnknown()

func (*MsgDeleteSection) XXX_Marshal

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

func (*MsgDeleteSection) XXX_Merge

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

func (*MsgDeleteSection) XXX_Size

func (m *MsgDeleteSection) XXX_Size() int

func (*MsgDeleteSection) XXX_Unmarshal

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

type MsgDeleteSectionResponse

type MsgDeleteSectionResponse struct {
}

MsgDeleteSectionResponse represents the Msg/DeleteSection response type

func (*MsgDeleteSectionResponse) Descriptor

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

func (*MsgDeleteSectionResponse) Marshal

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

func (*MsgDeleteSectionResponse) MarshalTo

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

func (*MsgDeleteSectionResponse) MarshalToSizedBuffer

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

func (*MsgDeleteSectionResponse) ProtoMessage

func (*MsgDeleteSectionResponse) ProtoMessage()

func (*MsgDeleteSectionResponse) Reset

func (m *MsgDeleteSectionResponse) Reset()

func (*MsgDeleteSectionResponse) Size

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

func (*MsgDeleteSectionResponse) String

func (m *MsgDeleteSectionResponse) String() string

func (*MsgDeleteSectionResponse) Unmarshal

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

func (*MsgDeleteSectionResponse) XXX_DiscardUnknown

func (m *MsgDeleteSectionResponse) XXX_DiscardUnknown()

func (*MsgDeleteSectionResponse) XXX_Marshal

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

func (*MsgDeleteSectionResponse) XXX_Merge

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

func (*MsgDeleteSectionResponse) XXX_Size

func (m *MsgDeleteSectionResponse) XXX_Size() int

func (*MsgDeleteSectionResponse) XXX_Unmarshal

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

type MsgDeleteSubspace

type MsgDeleteSubspace struct {
	// Id of the subspace to delete
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Address of the user deleting the subspace
	Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgDeleteSubspace represents the message used to delete a subspace

func NewMsgDeleteSubspace

func NewMsgDeleteSubspace(subspaceID uint64, signer string) *MsgDeleteSubspace

NewMsgDeleteSubspace returns a new MsgDeleteSubspace instance

func (*MsgDeleteSubspace) Descriptor

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

func (MsgDeleteSubspace) GetSignBytes

func (msg MsgDeleteSubspace) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgDeleteSubspace) GetSigner added in v4.4.0

func (m *MsgDeleteSubspace) GetSigner() string

func (MsgDeleteSubspace) GetSigners

func (msg MsgDeleteSubspace) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDeleteSubspace) GetSubspaceID added in v4.4.0

func (m *MsgDeleteSubspace) GetSubspaceID() uint64

func (*MsgDeleteSubspace) Marshal

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

func (*MsgDeleteSubspace) MarshalTo

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

func (*MsgDeleteSubspace) MarshalToSizedBuffer

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

func (*MsgDeleteSubspace) ProtoMessage

func (*MsgDeleteSubspace) ProtoMessage()

func (*MsgDeleteSubspace) Reset

func (m *MsgDeleteSubspace) Reset()

func (MsgDeleteSubspace) Route

func (msg MsgDeleteSubspace) Route() string

Route implements sdk.Msg

func (*MsgDeleteSubspace) Size

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

func (*MsgDeleteSubspace) String

func (m *MsgDeleteSubspace) String() string

func (MsgDeleteSubspace) Type

func (msg MsgDeleteSubspace) Type() string

Type implements sdk.Msg

func (*MsgDeleteSubspace) Unmarshal

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

func (MsgDeleteSubspace) ValidateBasic

func (msg MsgDeleteSubspace) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDeleteSubspace) XXX_DiscardUnknown

func (m *MsgDeleteSubspace) XXX_DiscardUnknown()

func (*MsgDeleteSubspace) XXX_Marshal

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

func (*MsgDeleteSubspace) XXX_Merge

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

func (*MsgDeleteSubspace) XXX_Size

func (m *MsgDeleteSubspace) XXX_Size() int

func (*MsgDeleteSubspace) XXX_Unmarshal

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

type MsgDeleteSubspaceResponse

type MsgDeleteSubspaceResponse struct {
}

MsgDeleteSubspaceResponse defines the Msg/DeleteSubspace response type

func (*MsgDeleteSubspaceResponse) Descriptor

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

func (*MsgDeleteSubspaceResponse) Marshal

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

func (*MsgDeleteSubspaceResponse) MarshalTo

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

func (*MsgDeleteSubspaceResponse) MarshalToSizedBuffer

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

func (*MsgDeleteSubspaceResponse) ProtoMessage

func (*MsgDeleteSubspaceResponse) ProtoMessage()

func (*MsgDeleteSubspaceResponse) Reset

func (m *MsgDeleteSubspaceResponse) Reset()

func (*MsgDeleteSubspaceResponse) Size

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

func (*MsgDeleteSubspaceResponse) String

func (m *MsgDeleteSubspaceResponse) String() string

func (*MsgDeleteSubspaceResponse) Unmarshal

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

func (*MsgDeleteSubspaceResponse) XXX_DiscardUnknown

func (m *MsgDeleteSubspaceResponse) XXX_DiscardUnknown()

func (*MsgDeleteSubspaceResponse) XXX_Marshal

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

func (*MsgDeleteSubspaceResponse) XXX_Merge

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

func (*MsgDeleteSubspaceResponse) XXX_Size

func (m *MsgDeleteSubspaceResponse) XXX_Size() int

func (*MsgDeleteSubspaceResponse) XXX_Unmarshal

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

type MsgDeleteUserGroup

type MsgDeleteUserGroup struct {
	// Id of the subspace inside which the group to delete is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the group to be deleted
	GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// User deleting the group
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgDeleteUserGroup represents the message used to delete a user group

func NewMsgDeleteUserGroup

func NewMsgDeleteUserGroup(subspaceID uint64, groupID uint32, signer string) *MsgDeleteUserGroup

NewMsgDeleteUserGroup creates a new MsgDeleteUserGroup instance

func (*MsgDeleteUserGroup) Descriptor

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

func (*MsgDeleteUserGroup) GetGroupID

func (m *MsgDeleteUserGroup) GetGroupID() uint32

func (MsgDeleteUserGroup) GetSignBytes

func (msg MsgDeleteUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgDeleteUserGroup) GetSigner

func (m *MsgDeleteUserGroup) GetSigner() string

func (MsgDeleteUserGroup) GetSigners

func (msg MsgDeleteUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDeleteUserGroup) GetSubspaceID

func (m *MsgDeleteUserGroup) GetSubspaceID() uint64

func (*MsgDeleteUserGroup) Marshal

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

func (*MsgDeleteUserGroup) MarshalTo

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

func (*MsgDeleteUserGroup) MarshalToSizedBuffer

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

func (*MsgDeleteUserGroup) ProtoMessage

func (*MsgDeleteUserGroup) ProtoMessage()

func (*MsgDeleteUserGroup) Reset

func (m *MsgDeleteUserGroup) Reset()

func (MsgDeleteUserGroup) Route

func (msg MsgDeleteUserGroup) Route() string

Route implements sdk.Msg

func (*MsgDeleteUserGroup) Size

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

func (*MsgDeleteUserGroup) String

func (m *MsgDeleteUserGroup) String() string

func (MsgDeleteUserGroup) Type

func (msg MsgDeleteUserGroup) Type() string

Type implements sdk.Msg

func (*MsgDeleteUserGroup) Unmarshal

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

func (MsgDeleteUserGroup) ValidateBasic

func (msg MsgDeleteUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDeleteUserGroup) XXX_DiscardUnknown

func (m *MsgDeleteUserGroup) XXX_DiscardUnknown()

func (*MsgDeleteUserGroup) XXX_Marshal

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

func (*MsgDeleteUserGroup) XXX_Merge

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

func (*MsgDeleteUserGroup) XXX_Size

func (m *MsgDeleteUserGroup) XXX_Size() int

func (*MsgDeleteUserGroup) XXX_Unmarshal

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

type MsgDeleteUserGroupResponse

type MsgDeleteUserGroupResponse struct {
}

MsgDeleteUserGroupResponse defines the Msg/DeleteUserGroup response type

func (*MsgDeleteUserGroupResponse) Descriptor

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

func (*MsgDeleteUserGroupResponse) Marshal

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

func (*MsgDeleteUserGroupResponse) MarshalTo

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

func (*MsgDeleteUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgDeleteUserGroupResponse) ProtoMessage

func (*MsgDeleteUserGroupResponse) ProtoMessage()

func (*MsgDeleteUserGroupResponse) Reset

func (m *MsgDeleteUserGroupResponse) Reset()

func (*MsgDeleteUserGroupResponse) Size

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

func (*MsgDeleteUserGroupResponse) String

func (m *MsgDeleteUserGroupResponse) String() string

func (*MsgDeleteUserGroupResponse) Unmarshal

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

func (*MsgDeleteUserGroupResponse) XXX_DiscardUnknown

func (m *MsgDeleteUserGroupResponse) XXX_DiscardUnknown()

func (*MsgDeleteUserGroupResponse) XXX_Marshal

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

func (*MsgDeleteUserGroupResponse) XXX_Merge

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

func (*MsgDeleteUserGroupResponse) XXX_Size

func (m *MsgDeleteUserGroupResponse) XXX_Size() int

func (*MsgDeleteUserGroupResponse) XXX_Unmarshal

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

type MsgEditSection

type MsgEditSection struct {
	// Id of the subspace inside which the section to be edited is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the section to be edited
	SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// (optional) New name of the section
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// (optional) New description of the section
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// User editing the section
	Editor string `protobuf:"bytes,5,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"`
}

MsgEditSection represents the message to be used when editing a subspace section

func NewMsgEditSection

func NewMsgEditSection(
	subspaceID uint64,
	sectionID uint32,
	name string,
	description string,
	editor string,
) *MsgEditSection

NewMsgEditSection returns a new MsgEditSection instance

func (*MsgEditSection) Descriptor

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

func (*MsgEditSection) GetDescription

func (m *MsgEditSection) GetDescription() string

func (*MsgEditSection) GetEditor

func (m *MsgEditSection) GetEditor() string

func (*MsgEditSection) GetName

func (m *MsgEditSection) GetName() string

func (*MsgEditSection) GetSectionID

func (m *MsgEditSection) GetSectionID() uint32

func (MsgEditSection) GetSignBytes

func (msg MsgEditSection) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgEditSection) GetSigners

func (msg MsgEditSection) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgEditSection) GetSubspaceID

func (m *MsgEditSection) GetSubspaceID() uint64

func (*MsgEditSection) Marshal

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

func (*MsgEditSection) MarshalTo

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

func (*MsgEditSection) MarshalToSizedBuffer

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

func (*MsgEditSection) ProtoMessage

func (*MsgEditSection) ProtoMessage()

func (*MsgEditSection) Reset

func (m *MsgEditSection) Reset()

func (MsgEditSection) Route

func (msg MsgEditSection) Route() string

Route implements sdk.Msg

func (*MsgEditSection) Size

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

func (*MsgEditSection) String

func (m *MsgEditSection) String() string

func (MsgEditSection) Type

func (msg MsgEditSection) Type() string

Type implements sdk.Msg

func (*MsgEditSection) Unmarshal

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

func (MsgEditSection) ValidateBasic

func (msg MsgEditSection) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgEditSection) XXX_DiscardUnknown

func (m *MsgEditSection) XXX_DiscardUnknown()

func (*MsgEditSection) XXX_Marshal

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

func (*MsgEditSection) XXX_Merge

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

func (*MsgEditSection) XXX_Size

func (m *MsgEditSection) XXX_Size() int

func (*MsgEditSection) XXX_Unmarshal

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

type MsgEditSectionResponse

type MsgEditSectionResponse struct {
}

MsgEditSectionResponse represents the Msg/EditSection response type

func (*MsgEditSectionResponse) Descriptor

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

func (*MsgEditSectionResponse) Marshal

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

func (*MsgEditSectionResponse) MarshalTo

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

func (*MsgEditSectionResponse) MarshalToSizedBuffer

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

func (*MsgEditSectionResponse) ProtoMessage

func (*MsgEditSectionResponse) ProtoMessage()

func (*MsgEditSectionResponse) Reset

func (m *MsgEditSectionResponse) Reset()

func (*MsgEditSectionResponse) Size

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

func (*MsgEditSectionResponse) String

func (m *MsgEditSectionResponse) String() string

func (*MsgEditSectionResponse) Unmarshal

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

func (*MsgEditSectionResponse) XXX_DiscardUnknown

func (m *MsgEditSectionResponse) XXX_DiscardUnknown()

func (*MsgEditSectionResponse) XXX_Marshal

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

func (*MsgEditSectionResponse) XXX_Merge

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

func (*MsgEditSectionResponse) XXX_Size

func (m *MsgEditSectionResponse) XXX_Size() int

func (*MsgEditSectionResponse) XXX_Unmarshal

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

type MsgEditSubspace

type MsgEditSubspace struct {
	// Id of the subspace to edit
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// New name of the subspace. If it shouldn't be changed, use [do-not-modify]
	// instead.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// New description of the subspace. If it shouldn't be changed, use
	// [do-not-modify] instead.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// New treasury address of the subspace. If it shouldn't be changed, use
	// [do-not-modify] instead.
	Treasury string `protobuf:"bytes,4,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"`
	// New owner of the subspace. If it shouldn't be changed, use [do-not-modify]
	// instead.
	Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// Address of the user editing the subspace
	Signer string `protobuf:"bytes,6,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgEditSubspace represents the message used to edit a subspace fields

func NewMsgEditSubspace

func NewMsgEditSubspace(
	subspaceID uint64,
	name string,
	description,
	treasury string,
	owner string,
	signer string,
) *MsgEditSubspace

NewMsgEditSubspace creates a new MsgEditSubspace instance

func (*MsgEditSubspace) Descriptor

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

func (*MsgEditSubspace) GetDescription added in v4.4.0

func (m *MsgEditSubspace) GetDescription() string

func (*MsgEditSubspace) GetName added in v4.4.0

func (m *MsgEditSubspace) GetName() string

func (*MsgEditSubspace) GetOwner added in v4.4.0

func (m *MsgEditSubspace) GetOwner() string

func (MsgEditSubspace) GetSignBytes

func (msg MsgEditSubspace) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgEditSubspace) GetSigner added in v4.4.0

func (m *MsgEditSubspace) GetSigner() string

func (MsgEditSubspace) GetSigners

func (msg MsgEditSubspace) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgEditSubspace) GetSubspaceID added in v4.4.0

func (m *MsgEditSubspace) GetSubspaceID() uint64

func (*MsgEditSubspace) GetTreasury added in v4.4.0

func (m *MsgEditSubspace) GetTreasury() string

func (*MsgEditSubspace) Marshal

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

func (*MsgEditSubspace) MarshalTo

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

func (*MsgEditSubspace) MarshalToSizedBuffer

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

func (*MsgEditSubspace) ProtoMessage

func (*MsgEditSubspace) ProtoMessage()

func (*MsgEditSubspace) Reset

func (m *MsgEditSubspace) Reset()

func (MsgEditSubspace) Route

func (msg MsgEditSubspace) Route() string

Route implements sdk.Msg

func (*MsgEditSubspace) Size

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

func (*MsgEditSubspace) String

func (m *MsgEditSubspace) String() string

func (MsgEditSubspace) Type

func (msg MsgEditSubspace) Type() string

Type implements sdk.Msg

func (*MsgEditSubspace) Unmarshal

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

func (MsgEditSubspace) ValidateBasic

func (msg MsgEditSubspace) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgEditSubspace) XXX_DiscardUnknown

func (m *MsgEditSubspace) XXX_DiscardUnknown()

func (*MsgEditSubspace) XXX_Marshal

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

func (*MsgEditSubspace) XXX_Merge

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

func (*MsgEditSubspace) XXX_Size

func (m *MsgEditSubspace) XXX_Size() int

func (*MsgEditSubspace) XXX_Unmarshal

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

type MsgEditSubspaceResponse

type MsgEditSubspaceResponse struct {
}

MsgEditSubspaceResponse defines the Msg/EditSubspace response type

func (*MsgEditSubspaceResponse) Descriptor

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

func (*MsgEditSubspaceResponse) Marshal

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

func (*MsgEditSubspaceResponse) MarshalTo

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

func (*MsgEditSubspaceResponse) MarshalToSizedBuffer

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

func (*MsgEditSubspaceResponse) ProtoMessage

func (*MsgEditSubspaceResponse) ProtoMessage()

func (*MsgEditSubspaceResponse) Reset

func (m *MsgEditSubspaceResponse) Reset()

func (*MsgEditSubspaceResponse) Size

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

func (*MsgEditSubspaceResponse) String

func (m *MsgEditSubspaceResponse) String() string

func (*MsgEditSubspaceResponse) Unmarshal

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

func (*MsgEditSubspaceResponse) XXX_DiscardUnknown

func (m *MsgEditSubspaceResponse) XXX_DiscardUnknown()

func (*MsgEditSubspaceResponse) XXX_Marshal

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

func (*MsgEditSubspaceResponse) XXX_Merge

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

func (*MsgEditSubspaceResponse) XXX_Size

func (m *MsgEditSubspaceResponse) XXX_Size() int

func (*MsgEditSubspaceResponse) XXX_Unmarshal

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

type MsgEditUserGroup

type MsgEditUserGroup struct {
	// Id of the subspace inside which the group to be edited is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the group to be edited
	GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// (optional) New name of the group
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// (optional) New description of the group
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// User editing the group
	Signer string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgEditUserGroup represents the message used to edit a user group

func NewMsgEditUserGroup

func NewMsgEditUserGroup(
	subspaceID uint64,
	groupID uint32,
	name string,
	description string,
	signer string,
) *MsgEditUserGroup

NewMsgEditUserGroup returns a new NewMsgEditUserGroup instance

func (*MsgEditUserGroup) Descriptor

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

func (*MsgEditUserGroup) GetDescription

func (m *MsgEditUserGroup) GetDescription() string

func (*MsgEditUserGroup) GetGroupID

func (m *MsgEditUserGroup) GetGroupID() uint32

func (*MsgEditUserGroup) GetName

func (m *MsgEditUserGroup) GetName() string

func (MsgEditUserGroup) GetSignBytes

func (msg MsgEditUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgEditUserGroup) GetSigner

func (m *MsgEditUserGroup) GetSigner() string

func (MsgEditUserGroup) GetSigners

func (msg MsgEditUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgEditUserGroup) GetSubspaceID

func (m *MsgEditUserGroup) GetSubspaceID() uint64

func (*MsgEditUserGroup) Marshal

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

func (*MsgEditUserGroup) MarshalTo

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

func (*MsgEditUserGroup) MarshalToSizedBuffer

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

func (*MsgEditUserGroup) ProtoMessage

func (*MsgEditUserGroup) ProtoMessage()

func (*MsgEditUserGroup) Reset

func (m *MsgEditUserGroup) Reset()

func (MsgEditUserGroup) Route

func (msg MsgEditUserGroup) Route() string

Route implements sdk.Msg

func (*MsgEditUserGroup) Size

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

func (*MsgEditUserGroup) String

func (m *MsgEditUserGroup) String() string

func (MsgEditUserGroup) Type

func (msg MsgEditUserGroup) Type() string

Type implements sdk.Msg

func (*MsgEditUserGroup) Unmarshal

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

func (MsgEditUserGroup) ValidateBasic

func (msg MsgEditUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgEditUserGroup) XXX_DiscardUnknown

func (m *MsgEditUserGroup) XXX_DiscardUnknown()

func (*MsgEditUserGroup) XXX_Marshal

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

func (*MsgEditUserGroup) XXX_Merge

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

func (*MsgEditUserGroup) XXX_Size

func (m *MsgEditUserGroup) XXX_Size() int

func (*MsgEditUserGroup) XXX_Unmarshal

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

type MsgEditUserGroupResponse

type MsgEditUserGroupResponse struct {
}

MsgEditUserGroupResponse defines the Msg/EditUserGroup response type

func (*MsgEditUserGroupResponse) Descriptor

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

func (*MsgEditUserGroupResponse) Marshal

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

func (*MsgEditUserGroupResponse) MarshalTo

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

func (*MsgEditUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgEditUserGroupResponse) ProtoMessage

func (*MsgEditUserGroupResponse) ProtoMessage()

func (*MsgEditUserGroupResponse) Reset

func (m *MsgEditUserGroupResponse) Reset()

func (*MsgEditUserGroupResponse) Size

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

func (*MsgEditUserGroupResponse) String

func (m *MsgEditUserGroupResponse) String() string

func (*MsgEditUserGroupResponse) Unmarshal

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

func (*MsgEditUserGroupResponse) XXX_DiscardUnknown

func (m *MsgEditUserGroupResponse) XXX_DiscardUnknown()

func (*MsgEditUserGroupResponse) XXX_Marshal

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

func (*MsgEditUserGroupResponse) XXX_Merge

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

func (*MsgEditUserGroupResponse) XXX_Size

func (m *MsgEditUserGroupResponse) XXX_Size() int

func (*MsgEditUserGroupResponse) XXX_Unmarshal

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

type MsgMoveSection

type MsgMoveSection struct {
	// Id of the subspace inside which the section lies
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the section to be moved
	SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// Id of the new parent
	NewParentID uint32 `protobuf:"varint,3,opt,name=new_parent_id,json=newParentId,proto3" json:"new_parent_id,omitempty" yaml:"new_parent_id"`
	// Signer of the message
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgMoveSection represents the message to be used when moving a section to another parent

func NewMsgMoveSection

func NewMsgMoveSection(
	subspaceID uint64,
	sectionID uint32,
	newParentID uint32,
	signer string,
) *MsgMoveSection

NewMsgMoveSection returns a new MsgMoveSection instance

func (*MsgMoveSection) Descriptor

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

func (*MsgMoveSection) GetNewParentID

func (m *MsgMoveSection) GetNewParentID() uint32

func (*MsgMoveSection) GetSectionID

func (m *MsgMoveSection) GetSectionID() uint32

func (MsgMoveSection) GetSignBytes

func (msg MsgMoveSection) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgMoveSection) GetSigner

func (m *MsgMoveSection) GetSigner() string

func (MsgMoveSection) GetSigners

func (msg MsgMoveSection) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgMoveSection) GetSubspaceID

func (m *MsgMoveSection) GetSubspaceID() uint64

func (*MsgMoveSection) Marshal

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

func (*MsgMoveSection) MarshalTo

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

func (*MsgMoveSection) MarshalToSizedBuffer

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

func (*MsgMoveSection) ProtoMessage

func (*MsgMoveSection) ProtoMessage()

func (*MsgMoveSection) Reset

func (m *MsgMoveSection) Reset()

func (MsgMoveSection) Route

func (msg MsgMoveSection) Route() string

Route implements sdk.Msg

func (*MsgMoveSection) Size

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

func (*MsgMoveSection) String

func (m *MsgMoveSection) String() string

func (MsgMoveSection) Type

func (msg MsgMoveSection) Type() string

Type implements sdk.Msg

func (*MsgMoveSection) Unmarshal

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

func (MsgMoveSection) ValidateBasic

func (msg MsgMoveSection) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgMoveSection) XXX_DiscardUnknown

func (m *MsgMoveSection) XXX_DiscardUnknown()

func (*MsgMoveSection) XXX_Marshal

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

func (*MsgMoveSection) XXX_Merge

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

func (*MsgMoveSection) XXX_Size

func (m *MsgMoveSection) XXX_Size() int

func (*MsgMoveSection) XXX_Unmarshal

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

type MsgMoveSectionResponse

type MsgMoveSectionResponse struct {
}

MsgMoveSectionResponse

func (*MsgMoveSectionResponse) Descriptor

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

func (*MsgMoveSectionResponse) Marshal

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

func (*MsgMoveSectionResponse) MarshalTo

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

func (*MsgMoveSectionResponse) MarshalToSizedBuffer

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

func (*MsgMoveSectionResponse) ProtoMessage

func (*MsgMoveSectionResponse) ProtoMessage()

func (*MsgMoveSectionResponse) Reset

func (m *MsgMoveSectionResponse) Reset()

func (*MsgMoveSectionResponse) Size

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

func (*MsgMoveSectionResponse) String

func (m *MsgMoveSectionResponse) String() string

func (*MsgMoveSectionResponse) Unmarshal

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

func (*MsgMoveSectionResponse) XXX_DiscardUnknown

func (m *MsgMoveSectionResponse) XXX_DiscardUnknown()

func (*MsgMoveSectionResponse) XXX_Marshal

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

func (*MsgMoveSectionResponse) XXX_Merge

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

func (*MsgMoveSectionResponse) XXX_Size

func (m *MsgMoveSectionResponse) XXX_Size() int

func (*MsgMoveSectionResponse) XXX_Unmarshal

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

type MsgMoveUserGroup

type MsgMoveUserGroup struct {
	// Id of the subspace inside which the group to move is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the group to be moved
	GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// Id of the new section where to move the group
	NewSectionID uint32 `protobuf:"varint,3,opt,name=new_section_id,json=newSectionId,proto3" json:"new_section_id,omitempty" yaml:"new_section_id"`
	// User signing the message
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgMoveUserGroup represents the message used to move one user group from a section to anoter

func NewMsgMoveUserGroup

func NewMsgMoveUserGroup(
	subspaceID uint64,
	groupID uint32,
	newSectionID uint32,
	signer string,
) *MsgMoveUserGroup

NewMsgMoveUserGroup returns a new NewMsgMoveUserGroup instance

func (*MsgMoveUserGroup) Descriptor

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

func (*MsgMoveUserGroup) GetGroupID

func (m *MsgMoveUserGroup) GetGroupID() uint32

func (*MsgMoveUserGroup) GetNewSectionID

func (m *MsgMoveUserGroup) GetNewSectionID() uint32

func (MsgMoveUserGroup) GetSignBytes

func (msg MsgMoveUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgMoveUserGroup) GetSigner

func (m *MsgMoveUserGroup) GetSigner() string

func (MsgMoveUserGroup) GetSigners

func (msg MsgMoveUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgMoveUserGroup) GetSubspaceID

func (m *MsgMoveUserGroup) GetSubspaceID() uint64

func (*MsgMoveUserGroup) Marshal

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

func (*MsgMoveUserGroup) MarshalTo

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

func (*MsgMoveUserGroup) MarshalToSizedBuffer

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

func (*MsgMoveUserGroup) ProtoMessage

func (*MsgMoveUserGroup) ProtoMessage()

func (*MsgMoveUserGroup) Reset

func (m *MsgMoveUserGroup) Reset()

func (MsgMoveUserGroup) Route

func (msg MsgMoveUserGroup) Route() string

Route implements sdk.Msg

func (*MsgMoveUserGroup) Size

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

func (*MsgMoveUserGroup) String

func (m *MsgMoveUserGroup) String() string

func (MsgMoveUserGroup) Type

func (msg MsgMoveUserGroup) Type() string

Type implements sdk.Msg

func (*MsgMoveUserGroup) Unmarshal

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

func (MsgMoveUserGroup) ValidateBasic

func (msg MsgMoveUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgMoveUserGroup) XXX_DiscardUnknown

func (m *MsgMoveUserGroup) XXX_DiscardUnknown()

func (*MsgMoveUserGroup) XXX_Marshal

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

func (*MsgMoveUserGroup) XXX_Merge

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

func (*MsgMoveUserGroup) XXX_Size

func (m *MsgMoveUserGroup) XXX_Size() int

func (*MsgMoveUserGroup) XXX_Unmarshal

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

type MsgMoveUserGroupResponse

type MsgMoveUserGroupResponse struct {
}

MsgMoveUserGroupResponse defines the Msg/MoveUserGroup response type

func (*MsgMoveUserGroupResponse) Descriptor

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

func (*MsgMoveUserGroupResponse) Marshal

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

func (*MsgMoveUserGroupResponse) MarshalTo

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

func (*MsgMoveUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgMoveUserGroupResponse) ProtoMessage

func (*MsgMoveUserGroupResponse) ProtoMessage()

func (*MsgMoveUserGroupResponse) Reset

func (m *MsgMoveUserGroupResponse) Reset()

func (*MsgMoveUserGroupResponse) Size

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

func (*MsgMoveUserGroupResponse) String

func (m *MsgMoveUserGroupResponse) String() string

func (*MsgMoveUserGroupResponse) Unmarshal

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

func (*MsgMoveUserGroupResponse) XXX_DiscardUnknown

func (m *MsgMoveUserGroupResponse) XXX_DiscardUnknown()

func (*MsgMoveUserGroupResponse) XXX_Marshal

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

func (*MsgMoveUserGroupResponse) XXX_Merge

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

func (*MsgMoveUserGroupResponse) XXX_Size

func (m *MsgMoveUserGroupResponse) XXX_Size() int

func (*MsgMoveUserGroupResponse) XXX_Unmarshal

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

type MsgRemoveUserFromUserGroup

type MsgRemoveUserFromUserGroup struct {
	// Id of the subspace inside which the group to remove the user from is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the group from which to remove the user
	GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// User to be removed from the group
	User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	// User signing the message
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgRemoveUserFromUserGroup represents the message used to remove a user from a user group

func NewMsgRemoveUserFromUserGroup

func NewMsgRemoveUserFromUserGroup(
	subspaceID uint64,
	groupID uint32,
	user string,
	signer string,
) *MsgRemoveUserFromUserGroup

NewMsgRemoveUserFromUserGroup creates a new MsgRemoveUserFromUserGroup instance

func (*MsgRemoveUserFromUserGroup) Descriptor

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

func (*MsgRemoveUserFromUserGroup) GetGroupID

func (m *MsgRemoveUserFromUserGroup) GetGroupID() uint32

func (MsgRemoveUserFromUserGroup) GetSignBytes

func (msg MsgRemoveUserFromUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) GetSigner

func (m *MsgRemoveUserFromUserGroup) GetSigner() string

func (MsgRemoveUserFromUserGroup) GetSigners

func (msg MsgRemoveUserFromUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) GetSubspaceID

func (m *MsgRemoveUserFromUserGroup) GetSubspaceID() uint64

func (*MsgRemoveUserFromUserGroup) GetUser

func (m *MsgRemoveUserFromUserGroup) GetUser() string

func (*MsgRemoveUserFromUserGroup) Marshal

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

func (*MsgRemoveUserFromUserGroup) MarshalTo

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

func (*MsgRemoveUserFromUserGroup) MarshalToSizedBuffer

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

func (*MsgRemoveUserFromUserGroup) ProtoMessage

func (*MsgRemoveUserFromUserGroup) ProtoMessage()

func (*MsgRemoveUserFromUserGroup) Reset

func (m *MsgRemoveUserFromUserGroup) Reset()

func (MsgRemoveUserFromUserGroup) Route

func (msg MsgRemoveUserFromUserGroup) Route() string

Route implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) Size

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

func (*MsgRemoveUserFromUserGroup) String

func (m *MsgRemoveUserFromUserGroup) String() string

func (MsgRemoveUserFromUserGroup) Type

Type implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) Unmarshal

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

func (MsgRemoveUserFromUserGroup) ValidateBasic

func (msg MsgRemoveUserFromUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) XXX_DiscardUnknown

func (m *MsgRemoveUserFromUserGroup) XXX_DiscardUnknown()

func (*MsgRemoveUserFromUserGroup) XXX_Marshal

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

func (*MsgRemoveUserFromUserGroup) XXX_Merge

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

func (*MsgRemoveUserFromUserGroup) XXX_Size

func (m *MsgRemoveUserFromUserGroup) XXX_Size() int

func (*MsgRemoveUserFromUserGroup) XXX_Unmarshal

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

type MsgRemoveUserFromUserGroupResponse

type MsgRemoveUserFromUserGroupResponse struct {
}

MsgRemoveUserFromUserGroupResponse defines the Msg/RemoveUserFromUserGroupResponse response type

func (*MsgRemoveUserFromUserGroupResponse) Descriptor

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

func (*MsgRemoveUserFromUserGroupResponse) Marshal

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

func (*MsgRemoveUserFromUserGroupResponse) MarshalTo

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

func (*MsgRemoveUserFromUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgRemoveUserFromUserGroupResponse) ProtoMessage

func (*MsgRemoveUserFromUserGroupResponse) ProtoMessage()

func (*MsgRemoveUserFromUserGroupResponse) Reset

func (*MsgRemoveUserFromUserGroupResponse) Size

func (*MsgRemoveUserFromUserGroupResponse) String

func (*MsgRemoveUserFromUserGroupResponse) Unmarshal

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

func (*MsgRemoveUserFromUserGroupResponse) XXX_DiscardUnknown

func (m *MsgRemoveUserFromUserGroupResponse) XXX_DiscardUnknown()

func (*MsgRemoveUserFromUserGroupResponse) XXX_Marshal

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

func (*MsgRemoveUserFromUserGroupResponse) XXX_Merge

func (*MsgRemoveUserFromUserGroupResponse) XXX_Size

func (*MsgRemoveUserFromUserGroupResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateSubspace allows to create a subspace
	CreateSubspace(context.Context, *MsgCreateSubspace) (*MsgCreateSubspaceResponse, error)
	// EditSubspace allows to edit a subspace
	EditSubspace(context.Context, *MsgEditSubspace) (*MsgEditSubspaceResponse, error)
	// DeleteSubspace allows to delete a subspace
	DeleteSubspace(context.Context, *MsgDeleteSubspace) (*MsgDeleteSubspaceResponse, error)
	// CreateSection allows to create a new subspace section
	CreateSection(context.Context, *MsgCreateSection) (*MsgCreateSectionResponse, error)
	// EditSection allows to edit an existing section
	EditSection(context.Context, *MsgEditSection) (*MsgEditSectionResponse, error)
	// MoveSection allows to move an existing section to another parent
	MoveSection(context.Context, *MsgMoveSection) (*MsgMoveSectionResponse, error)
	// DeleteSection allows to delete an existing section
	DeleteSection(context.Context, *MsgDeleteSection) (*MsgDeleteSectionResponse, error)
	// CreateUserGroup allows to create a user group
	CreateUserGroup(context.Context, *MsgCreateUserGroup) (*MsgCreateUserGroupResponse, error)
	// EditUserGroup allows to edit a user group
	EditUserGroup(context.Context, *MsgEditUserGroup) (*MsgEditUserGroupResponse, error)
	// MoveUserGroup allows to move a user group from a section to another
	MoveUserGroup(context.Context, *MsgMoveUserGroup) (*MsgMoveUserGroupResponse, error)
	// SetUserGroupPermissions allows to set the permissions for a specific group
	SetUserGroupPermissions(context.Context, *MsgSetUserGroupPermissions) (*MsgSetUserGroupPermissionsResponse, error)
	// DeleteUserGroup allows to delete an existing user group
	DeleteUserGroup(context.Context, *MsgDeleteUserGroup) (*MsgDeleteUserGroupResponse, error)
	// AddUserToUserGroup allows to add a specific user to a specific user group
	AddUserToUserGroup(context.Context, *MsgAddUserToUserGroup) (*MsgAddUserToUserGroupResponse, error)
	// RemoveUserFromUserGroup allows to remove a specific user from a specific
	// user group
	RemoveUserFromUserGroup(context.Context, *MsgRemoveUserFromUserGroup) (*MsgRemoveUserFromUserGroupResponse, error)
	// SetUserPermissions allows to set the permissions for a specific user
	SetUserPermissions(context.Context, *MsgSetUserPermissions) (*MsgSetUserPermissionsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetUserGroupPermissions

type MsgSetUserGroupPermissions struct {
	// Id of the subspace inside which the group is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the group for which to set the new permissions
	GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// New permissions to be set to the group
	Permissions []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"`
	// User setting the new permissions
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgSetUserGroupPermissions represents the message used to set the permissions of a user group

func NewMsgSetUserGroupPermissions

func NewMsgSetUserGroupPermissions(
	subspaceID uint64,
	groupID uint32,
	permissions Permissions,
	signer string,
) *MsgSetUserGroupPermissions

NewMsgSetUserGroupPermissions returns a new MsgSetUserGroupPermissions instance

func (*MsgSetUserGroupPermissions) Descriptor

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

func (*MsgSetUserGroupPermissions) GetGroupID

func (m *MsgSetUserGroupPermissions) GetGroupID() uint32

func (*MsgSetUserGroupPermissions) GetPermissions

func (m *MsgSetUserGroupPermissions) GetPermissions() []string

func (MsgSetUserGroupPermissions) GetSignBytes

func (msg MsgSetUserGroupPermissions) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgSetUserGroupPermissions) GetSigner

func (m *MsgSetUserGroupPermissions) GetSigner() string

func (MsgSetUserGroupPermissions) GetSigners

func (msg MsgSetUserGroupPermissions) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgSetUserGroupPermissions) GetSubspaceID

func (m *MsgSetUserGroupPermissions) GetSubspaceID() uint64

func (*MsgSetUserGroupPermissions) Marshal

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

func (*MsgSetUserGroupPermissions) MarshalTo

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

func (*MsgSetUserGroupPermissions) MarshalToSizedBuffer

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

func (*MsgSetUserGroupPermissions) ProtoMessage

func (*MsgSetUserGroupPermissions) ProtoMessage()

func (*MsgSetUserGroupPermissions) Reset

func (m *MsgSetUserGroupPermissions) Reset()

func (MsgSetUserGroupPermissions) Route

func (msg MsgSetUserGroupPermissions) Route() string

Route implements sdk.Msg

func (*MsgSetUserGroupPermissions) Size

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

func (*MsgSetUserGroupPermissions) String

func (m *MsgSetUserGroupPermissions) String() string

func (MsgSetUserGroupPermissions) Type

Type implements sdk.Msg

func (*MsgSetUserGroupPermissions) Unmarshal

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

func (MsgSetUserGroupPermissions) ValidateBasic

func (msg MsgSetUserGroupPermissions) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgSetUserGroupPermissions) XXX_DiscardUnknown

func (m *MsgSetUserGroupPermissions) XXX_DiscardUnknown()

func (*MsgSetUserGroupPermissions) XXX_Marshal

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

func (*MsgSetUserGroupPermissions) XXX_Merge

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

func (*MsgSetUserGroupPermissions) XXX_Size

func (m *MsgSetUserGroupPermissions) XXX_Size() int

func (*MsgSetUserGroupPermissions) XXX_Unmarshal

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

type MsgSetUserGroupPermissionsResponse

type MsgSetUserGroupPermissionsResponse struct {
}

MsgSetUserGroupPermissionsResponse defines the Msg/SetUserGroupPermissionsResponse response type

func (*MsgSetUserGroupPermissionsResponse) Descriptor

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

func (*MsgSetUserGroupPermissionsResponse) Marshal

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

func (*MsgSetUserGroupPermissionsResponse) MarshalTo

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

func (*MsgSetUserGroupPermissionsResponse) MarshalToSizedBuffer

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

func (*MsgSetUserGroupPermissionsResponse) ProtoMessage

func (*MsgSetUserGroupPermissionsResponse) ProtoMessage()

func (*MsgSetUserGroupPermissionsResponse) Reset

func (*MsgSetUserGroupPermissionsResponse) Size

func (*MsgSetUserGroupPermissionsResponse) String

func (*MsgSetUserGroupPermissionsResponse) Unmarshal

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

func (*MsgSetUserGroupPermissionsResponse) XXX_DiscardUnknown

func (m *MsgSetUserGroupPermissionsResponse) XXX_DiscardUnknown()

func (*MsgSetUserGroupPermissionsResponse) XXX_Marshal

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

func (*MsgSetUserGroupPermissionsResponse) XXX_Merge

func (*MsgSetUserGroupPermissionsResponse) XXX_Size

func (*MsgSetUserGroupPermissionsResponse) XXX_Unmarshal

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

type MsgSetUserPermissions

type MsgSetUserPermissions struct {
	// Id of the subspace inside which to set the permissions
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the section for which to set the permissions
	SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// User for which to set the permissions
	User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	// Permissions to be set to the user
	Permissions []string `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"`
	// User signing the message
	Signer string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgSetUserPermissions represents the message used to set the permissions of a specific user

func NewMsgSetUserPermissions

func NewMsgSetUserPermissions(
	subspaceID uint64,
	sectionID uint32,
	user string,
	permissions Permissions,
	signer string,
) *MsgSetUserPermissions

NewMsgSetUserPermissions creates a new MsgSetUserPermissions instance

func (*MsgSetUserPermissions) Descriptor

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

func (*MsgSetUserPermissions) GetPermissions

func (m *MsgSetUserPermissions) GetPermissions() []string

func (*MsgSetUserPermissions) GetSectionID

func (m *MsgSetUserPermissions) GetSectionID() uint32

func (MsgSetUserPermissions) GetSignBytes

func (msg MsgSetUserPermissions) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgSetUserPermissions) GetSigner

func (m *MsgSetUserPermissions) GetSigner() string

func (MsgSetUserPermissions) GetSigners

func (msg MsgSetUserPermissions) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgSetUserPermissions) GetSubspaceID

func (m *MsgSetUserPermissions) GetSubspaceID() uint64

func (*MsgSetUserPermissions) GetUser

func (m *MsgSetUserPermissions) GetUser() string

func (*MsgSetUserPermissions) Marshal

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

func (*MsgSetUserPermissions) MarshalTo

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

func (*MsgSetUserPermissions) MarshalToSizedBuffer

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

func (*MsgSetUserPermissions) ProtoMessage

func (*MsgSetUserPermissions) ProtoMessage()

func (*MsgSetUserPermissions) Reset

func (m *MsgSetUserPermissions) Reset()

func (MsgSetUserPermissions) Route

func (msg MsgSetUserPermissions) Route() string

Route implements sdk.Msg

func (*MsgSetUserPermissions) Size

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

func (*MsgSetUserPermissions) String

func (m *MsgSetUserPermissions) String() string

func (MsgSetUserPermissions) Type

func (msg MsgSetUserPermissions) Type() string

Type implements sdk.Msg

func (*MsgSetUserPermissions) Unmarshal

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

func (MsgSetUserPermissions) ValidateBasic

func (msg MsgSetUserPermissions) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgSetUserPermissions) XXX_DiscardUnknown

func (m *MsgSetUserPermissions) XXX_DiscardUnknown()

func (*MsgSetUserPermissions) XXX_Marshal

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

func (*MsgSetUserPermissions) XXX_Merge

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

func (*MsgSetUserPermissions) XXX_Size

func (m *MsgSetUserPermissions) XXX_Size() int

func (*MsgSetUserPermissions) XXX_Unmarshal

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

type MsgSetUserPermissionsResponse

type MsgSetUserPermissionsResponse struct {
}

MsgSetUserPermissionsResponse defines the Msg/SetPermissionsResponse response type

func (*MsgSetUserPermissionsResponse) Descriptor

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

func (*MsgSetUserPermissionsResponse) Marshal

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

func (*MsgSetUserPermissionsResponse) MarshalTo

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

func (*MsgSetUserPermissionsResponse) MarshalToSizedBuffer

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

func (*MsgSetUserPermissionsResponse) ProtoMessage

func (*MsgSetUserPermissionsResponse) ProtoMessage()

func (*MsgSetUserPermissionsResponse) Reset

func (m *MsgSetUserPermissionsResponse) Reset()

func (*MsgSetUserPermissionsResponse) Size

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

func (*MsgSetUserPermissionsResponse) String

func (*MsgSetUserPermissionsResponse) Unmarshal

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

func (*MsgSetUserPermissionsResponse) XXX_DiscardUnknown

func (m *MsgSetUserPermissionsResponse) XXX_DiscardUnknown()

func (*MsgSetUserPermissionsResponse) XXX_Marshal

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

func (*MsgSetUserPermissionsResponse) XXX_Merge

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

func (*MsgSetUserPermissionsResponse) XXX_Size

func (m *MsgSetUserPermissionsResponse) XXX_Size() int

func (*MsgSetUserPermissionsResponse) XXX_Unmarshal

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

type MultiSubspacesHooks

type MultiSubspacesHooks []SubspacesHooks

MultiSubspacesHooks combines multiple subspaces hooks, all hook functions are run in array sequence

func NewMultiSubspacesHooks

func NewMultiSubspacesHooks(hooks ...SubspacesHooks) MultiSubspacesHooks

func (MultiSubspacesHooks) AfterSubspaceDeleted

func (h MultiSubspacesHooks) AfterSubspaceDeleted(ctx sdk.Context, subspaceID uint64)

AfterSubspaceDeleted implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceGroupDeleted

func (h MultiSubspacesHooks) AfterSubspaceGroupDeleted(ctx sdk.Context, subspaceID uint64, groupID uint32)

AfterSubspaceGroupDeleted implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceGroupMemberAdded

func (h MultiSubspacesHooks) AfterSubspaceGroupMemberAdded(ctx sdk.Context, subspaceID uint64, groupID uint32, user string)

AfterSubspaceGroupMemberAdded implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved

func (h MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user string)

AfterSubspaceGroupMemberRemoved implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceGroupSaved

func (h MultiSubspacesHooks) AfterSubspaceGroupSaved(ctx sdk.Context, subspaceID uint64, groupID uint32)

AfterSubspaceGroupSaved implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceSaved

func (h MultiSubspacesHooks) AfterSubspaceSaved(ctx sdk.Context, subspaceID uint64)

AfterSubspaceSaved implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceSectionDeleted

func (h MultiSubspacesHooks) AfterSubspaceSectionDeleted(ctx sdk.Context, subspaceID uint64, sectionID uint32)

AfterSubspaceSectionDeleted implements SubspacesHooks

func (MultiSubspacesHooks) AfterSubspaceSectionSaved

func (h MultiSubspacesHooks) AfterSubspaceSectionSaved(ctx sdk.Context, subspaceID uint64, sectionID uint32)

AfterSubspaceSectionSaved implements SubspacesHooks

func (MultiSubspacesHooks) AfterUserPermissionRemoved

func (h MultiSubspacesHooks) AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string)

AfterUserPermissionRemoved implements SubspacesHook

func (MultiSubspacesHooks) AfterUserPermissionSet

func (h MultiSubspacesHooks) AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string, permissions Permissions)

AfterUserPermissionSet implements SubspacesHook

type Permission

type Permission = string

Permission represents a permission that can be set to a user or user group

func RegisterPermission

func RegisterPermission(permissionName string) Permission

RegisterPermission registers the permissions with the given name and returns its value

type PermissionDetail

type PermissionDetail struct {
	// Id of the subspace for which this permission is valid
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Id of the section for which this permission is valid
	SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"`
	// sum is the oneof that specifies whether this represents a user or
	// group permission detail
	//
	// Types that are valid to be assigned to Sum:
	//	*PermissionDetail_User_
	//	*PermissionDetail_Group_
	Sum isPermissionDetail_Sum `protobuf_oneof:"sum"`
}

PermissionDetail contains the details data of a permission

func NewPermissionDetailGroup

func NewPermissionDetailGroup(subspaceID uint64, sectionID uint32, groupID uint32, permissions Permissions) PermissionDetail

NewPermissionDetailGroup returns a new PermissionDetail for the user with the given id and permission value

func NewPermissionDetailUser

func NewPermissionDetailUser(subspaceID uint64, sectionID uint32, user string, permissions Permissions) PermissionDetail

NewPermissionDetailUser returns a new PermissionDetail for the user with the given address and permission value

func (*PermissionDetail) Descriptor

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

func (*PermissionDetail) Equal

func (this *PermissionDetail) Equal(that interface{}) bool

func (*PermissionDetail) GetGroup

func (*PermissionDetail) GetSum

func (m *PermissionDetail) GetSum() isPermissionDetail_Sum

func (*PermissionDetail) GetUser

func (*PermissionDetail) Marshal

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

func (*PermissionDetail) MarshalTo

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

func (*PermissionDetail) MarshalToSizedBuffer

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

func (*PermissionDetail) ProtoMessage

func (*PermissionDetail) ProtoMessage()

func (*PermissionDetail) Reset

func (m *PermissionDetail) Reset()

func (*PermissionDetail) Size

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

func (*PermissionDetail) String

func (m *PermissionDetail) String() string

func (*PermissionDetail) Unmarshal

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

func (*PermissionDetail) XXX_DiscardUnknown

func (m *PermissionDetail) XXX_DiscardUnknown()

func (*PermissionDetail) XXX_Marshal

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

func (*PermissionDetail) XXX_Merge

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

func (*PermissionDetail) XXX_OneofWrappers

func (*PermissionDetail) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PermissionDetail) XXX_Size

func (m *PermissionDetail) XXX_Size() int

func (*PermissionDetail) XXX_Unmarshal

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

type PermissionDetail_Group

type PermissionDetail_Group struct {
	// Unique id of the group
	GroupID uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// Permissions set to the group
	Permission []string `protobuf:"bytes,2,rep,name=permission,proto3" json:"permission,omitempty"`
}

Group is a permission that has been set to a user group

func (*PermissionDetail_Group) Descriptor

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

func (*PermissionDetail_Group) Equal

func (this *PermissionDetail_Group) Equal(that interface{}) bool

func (*PermissionDetail_Group) Marshal

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

func (*PermissionDetail_Group) MarshalTo

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

func (*PermissionDetail_Group) MarshalToSizedBuffer

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

func (*PermissionDetail_Group) ProtoMessage

func (*PermissionDetail_Group) ProtoMessage()

func (*PermissionDetail_Group) Reset

func (m *PermissionDetail_Group) Reset()

func (*PermissionDetail_Group) Size

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

func (*PermissionDetail_Group) String

func (m *PermissionDetail_Group) String() string

func (*PermissionDetail_Group) Unmarshal

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

func (*PermissionDetail_Group) XXX_DiscardUnknown

func (m *PermissionDetail_Group) XXX_DiscardUnknown()

func (*PermissionDetail_Group) XXX_Marshal

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

func (*PermissionDetail_Group) XXX_Merge

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

func (*PermissionDetail_Group) XXX_Size

func (m *PermissionDetail_Group) XXX_Size() int

func (*PermissionDetail_Group) XXX_Unmarshal

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

type PermissionDetail_Group_

type PermissionDetail_Group_ struct {
	Group *PermissionDetail_Group `protobuf:"bytes,4,opt,name=group,proto3,oneof" json:"group,omitempty"`
}

func (*PermissionDetail_Group_) Equal

func (this *PermissionDetail_Group_) Equal(that interface{}) bool

func (*PermissionDetail_Group_) MarshalTo

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

func (*PermissionDetail_Group_) MarshalToSizedBuffer

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

func (*PermissionDetail_Group_) Size

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

type PermissionDetail_User

type PermissionDetail_User struct {
	// User for which the permission was set
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	// Permissions set to the user
	Permission []string `protobuf:"bytes,2,rep,name=permission,proto3" json:"permission,omitempty" yaml:"permission"`
}

User is a permission that has been set to a specific user

func (*PermissionDetail_User) Descriptor

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

func (*PermissionDetail_User) Equal

func (this *PermissionDetail_User) Equal(that interface{}) bool

func (*PermissionDetail_User) Marshal

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

func (*PermissionDetail_User) MarshalTo

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

func (*PermissionDetail_User) MarshalToSizedBuffer

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

func (*PermissionDetail_User) ProtoMessage

func (*PermissionDetail_User) ProtoMessage()

func (*PermissionDetail_User) Reset

func (m *PermissionDetail_User) Reset()

func (*PermissionDetail_User) Size

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

func (*PermissionDetail_User) String

func (m *PermissionDetail_User) String() string

func (*PermissionDetail_User) Unmarshal

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

func (*PermissionDetail_User) XXX_DiscardUnknown

func (m *PermissionDetail_User) XXX_DiscardUnknown()

func (*PermissionDetail_User) XXX_Marshal

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

func (*PermissionDetail_User) XXX_Merge

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

func (*PermissionDetail_User) XXX_Size

func (m *PermissionDetail_User) XXX_Size() int

func (*PermissionDetail_User) XXX_Unmarshal

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

type PermissionDetail_User_

type PermissionDetail_User_ struct {
	User *PermissionDetail_User `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"`
}

func (*PermissionDetail_User_) Equal

func (this *PermissionDetail_User_) Equal(that interface{}) bool

func (*PermissionDetail_User_) MarshalTo

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

func (*PermissionDetail_User_) MarshalToSizedBuffer

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

func (*PermissionDetail_User_) Size

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

type Permissions

type Permissions []Permission

func CombinePermissions

func CombinePermissions(permissions ...Permission) Permissions

CombinePermissions combines all the given permissions into a single Permission object using the OR operator

func NewPermissions

func NewPermissions(permissions ...Permission) Permissions

NewPermissions allows to build a new Permissions instance

func SanitizePermissions

func SanitizePermissions(permissions Permissions) (sanitized Permissions)

SanitizePermissions sanitizes the given permissions to remove any duplicate

func (Permissions) Equals

func (p Permissions) Equals(other Permissions) bool

Equals returns true iff the given permissions slice is equals to this one

type QueryClient

type QueryClient interface {
	// Subspaces queries all the subspaces inside Desmos
	Subspaces(ctx context.Context, in *QuerySubspacesRequest, opts ...grpc.CallOption) (*QuerySubspacesResponse, error)
	// Subspace queries all the information about the subspace with the given id
	Subspace(ctx context.Context, in *QuerySubspaceRequest, opts ...grpc.CallOption) (*QuerySubspaceResponse, error)
	// Sections allows to query for the sections of a specific subspace
	Sections(ctx context.Context, in *QuerySectionsRequest, opts ...grpc.CallOption) (*QuerySectionsResponse, error)
	// Section queries all the information about the section with the given id
	Section(ctx context.Context, in *QuerySectionRequest, opts ...grpc.CallOption) (*QuerySectionResponse, error)
	// UserGroups queries all the groups that are present inside the subspace with
	// the given id
	UserGroups(ctx context.Context, in *QueryUserGroupsRequest, opts ...grpc.CallOption) (*QueryUserGroupsResponse, error)
	// UserGroup queries the user group having the given id inside the specific
	// subspace
	UserGroup(ctx context.Context, in *QueryUserGroupRequest, opts ...grpc.CallOption) (*QueryUserGroupResponse, error)
	// UserGroupMembers queries all the members of a given user group
	UserGroupMembers(ctx context.Context, in *QueryUserGroupMembersRequest, opts ...grpc.CallOption) (*QueryUserGroupMembersResponse, error)
	// UserPermissions queries the permissions for the given user
	UserPermissions(ctx context.Context, in *QueryUserPermissionsRequest, opts ...grpc.CallOption) (*QueryUserPermissionsResponse, 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 QuerySectionRequest

type QuerySectionRequest struct {
	// Id of the subspace inside which to search for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Id of the searched section
	SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"`
}

QuerySectionRequest is the request type for Query/Section RPC method

func NewQuerySectionRequest

func NewQuerySectionRequest(subspaceID uint64, sectionID uint32) *QuerySectionRequest

NewQuerySectionRequest returns a new QuerySectionRequest instance

func (*QuerySectionRequest) Descriptor

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

func (*QuerySectionRequest) GetSectionId

func (m *QuerySectionRequest) GetSectionId() uint32

func (*QuerySectionRequest) GetSubspaceId

func (m *QuerySectionRequest) GetSubspaceId() uint64

func (*QuerySectionRequest) Marshal

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

func (*QuerySectionRequest) MarshalTo

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

func (*QuerySectionRequest) MarshalToSizedBuffer

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

func (*QuerySectionRequest) ProtoMessage

func (*QuerySectionRequest) ProtoMessage()

func (*QuerySectionRequest) Reset

func (m *QuerySectionRequest) Reset()

func (*QuerySectionRequest) Size

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

func (*QuerySectionRequest) String

func (m *QuerySectionRequest) String() string

func (*QuerySectionRequest) Unmarshal

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

func (*QuerySectionRequest) XXX_DiscardUnknown

func (m *QuerySectionRequest) XXX_DiscardUnknown()

func (*QuerySectionRequest) XXX_Marshal

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

func (*QuerySectionRequest) XXX_Merge

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

func (*QuerySectionRequest) XXX_Size

func (m *QuerySectionRequest) XXX_Size() int

func (*QuerySectionRequest) XXX_Unmarshal

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

type QuerySectionResponse

type QuerySectionResponse struct {
	Section Section `protobuf:"bytes,1,opt,name=section,proto3" json:"section"`
}

QuerySectionResponse is the response type for Query/Section RPC method

func (*QuerySectionResponse) Descriptor

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

func (*QuerySectionResponse) GetSection

func (m *QuerySectionResponse) GetSection() Section

func (*QuerySectionResponse) Marshal

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

func (*QuerySectionResponse) MarshalTo

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

func (*QuerySectionResponse) MarshalToSizedBuffer

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

func (*QuerySectionResponse) ProtoMessage

func (*QuerySectionResponse) ProtoMessage()

func (*QuerySectionResponse) Reset

func (m *QuerySectionResponse) Reset()

func (*QuerySectionResponse) Size

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

func (*QuerySectionResponse) String

func (m *QuerySectionResponse) String() string

func (*QuerySectionResponse) Unmarshal

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

func (*QuerySectionResponse) XXX_DiscardUnknown

func (m *QuerySectionResponse) XXX_DiscardUnknown()

func (*QuerySectionResponse) XXX_Marshal

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

func (*QuerySectionResponse) XXX_Merge

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

func (*QuerySectionResponse) XXX_Size

func (m *QuerySectionResponse) XXX_Size() int

func (*QuerySectionResponse) XXX_Unmarshal

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

type QuerySectionsRequest

type QuerySectionsRequest struct {
	// Id of the subspace to query the sections for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySectionsRequest is the request type for Query/Sections RPC method

func NewQuerySectionsRequest

func NewQuerySectionsRequest(subspaceID uint64, pagination *query.PageRequest) *QuerySectionsRequest

NewQuerySectionsRequest returns a new QuerySectionsRequest instance

func (*QuerySectionsRequest) Descriptor

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

func (*QuerySectionsRequest) GetPagination

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

func (*QuerySectionsRequest) GetSubspaceId

func (m *QuerySectionsRequest) GetSubspaceId() uint64

func (*QuerySectionsRequest) Marshal

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

func (*QuerySectionsRequest) MarshalTo

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

func (*QuerySectionsRequest) MarshalToSizedBuffer

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

func (*QuerySectionsRequest) ProtoMessage

func (*QuerySectionsRequest) ProtoMessage()

func (*QuerySectionsRequest) Reset

func (m *QuerySectionsRequest) Reset()

func (*QuerySectionsRequest) Size

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

func (*QuerySectionsRequest) String

func (m *QuerySectionsRequest) String() string

func (*QuerySectionsRequest) Unmarshal

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

func (*QuerySectionsRequest) XXX_DiscardUnknown

func (m *QuerySectionsRequest) XXX_DiscardUnknown()

func (*QuerySectionsRequest) XXX_Marshal

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

func (*QuerySectionsRequest) XXX_Merge

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

func (*QuerySectionsRequest) XXX_Size

func (m *QuerySectionsRequest) XXX_Size() int

func (*QuerySectionsRequest) XXX_Unmarshal

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

type QuerySectionsResponse

type QuerySectionsResponse struct {
	Sections   []Section           `protobuf:"bytes,1,rep,name=sections,proto3" json:"sections"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySectionsResponse is the response type for Query/Sections RPC method

func (*QuerySectionsResponse) Descriptor

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

func (*QuerySectionsResponse) GetPagination

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

func (*QuerySectionsResponse) GetSections

func (m *QuerySectionsResponse) GetSections() []Section

func (*QuerySectionsResponse) Marshal

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

func (*QuerySectionsResponse) MarshalTo

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

func (*QuerySectionsResponse) MarshalToSizedBuffer

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

func (*QuerySectionsResponse) ProtoMessage

func (*QuerySectionsResponse) ProtoMessage()

func (*QuerySectionsResponse) Reset

func (m *QuerySectionsResponse) Reset()

func (*QuerySectionsResponse) Size

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

func (*QuerySectionsResponse) String

func (m *QuerySectionsResponse) String() string

func (*QuerySectionsResponse) Unmarshal

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

func (*QuerySectionsResponse) XXX_DiscardUnknown

func (m *QuerySectionsResponse) XXX_DiscardUnknown()

func (*QuerySectionsResponse) XXX_Marshal

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

func (*QuerySectionsResponse) XXX_Merge

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

func (*QuerySectionsResponse) XXX_Size

func (m *QuerySectionsResponse) XXX_Size() int

func (*QuerySectionsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Subspaces queries all the subspaces inside Desmos
	Subspaces(context.Context, *QuerySubspacesRequest) (*QuerySubspacesResponse, error)
	// Subspace queries all the information about the subspace with the given id
	Subspace(context.Context, *QuerySubspaceRequest) (*QuerySubspaceResponse, error)
	// Sections allows to query for the sections of a specific subspace
	Sections(context.Context, *QuerySectionsRequest) (*QuerySectionsResponse, error)
	// Section queries all the information about the section with the given id
	Section(context.Context, *QuerySectionRequest) (*QuerySectionResponse, error)
	// UserGroups queries all the groups that are present inside the subspace with
	// the given id
	UserGroups(context.Context, *QueryUserGroupsRequest) (*QueryUserGroupsResponse, error)
	// UserGroup queries the user group having the given id inside the specific
	// subspace
	UserGroup(context.Context, *QueryUserGroupRequest) (*QueryUserGroupResponse, error)
	// UserGroupMembers queries all the members of a given user group
	UserGroupMembers(context.Context, *QueryUserGroupMembersRequest) (*QueryUserGroupMembersResponse, error)
	// UserPermissions queries the permissions for the given user
	UserPermissions(context.Context, *QueryUserPermissionsRequest) (*QueryUserPermissionsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySubspaceRequest

type QuerySubspaceRequest struct {
	// Id of the subspace to query
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
}

QuerySubspace is the request type for the Query/Subspace RPC method

func NewQuerySubspaceRequest

func NewQuerySubspaceRequest(subspaceID uint64) *QuerySubspaceRequest

NewQuerySubspaceRequest returns a new QuerySubspaceRequest instance

func (*QuerySubspaceRequest) Descriptor

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

func (*QuerySubspaceRequest) Marshal

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

func (*QuerySubspaceRequest) MarshalTo

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

func (*QuerySubspaceRequest) MarshalToSizedBuffer

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

func (*QuerySubspaceRequest) ProtoMessage

func (*QuerySubspaceRequest) ProtoMessage()

func (*QuerySubspaceRequest) Reset

func (m *QuerySubspaceRequest) Reset()

func (*QuerySubspaceRequest) Size

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

func (*QuerySubspaceRequest) String

func (m *QuerySubspaceRequest) String() string

func (*QuerySubspaceRequest) Unmarshal

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

func (*QuerySubspaceRequest) XXX_DiscardUnknown

func (m *QuerySubspaceRequest) XXX_DiscardUnknown()

func (*QuerySubspaceRequest) XXX_Marshal

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

func (*QuerySubspaceRequest) XXX_Merge

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

func (*QuerySubspaceRequest) XXX_Size

func (m *QuerySubspaceRequest) XXX_Size() int

func (*QuerySubspaceRequest) XXX_Unmarshal

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

type QuerySubspaceResponse

type QuerySubspaceResponse struct {
	Subspace Subspace `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace"`
}

QuerySubspaceResponse is the response type for the Query/Subspace method

func (*QuerySubspaceResponse) Descriptor

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

func (*QuerySubspaceResponse) GetSubspace

func (m *QuerySubspaceResponse) GetSubspace() Subspace

func (*QuerySubspaceResponse) Marshal

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

func (*QuerySubspaceResponse) MarshalTo

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

func (*QuerySubspaceResponse) MarshalToSizedBuffer

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

func (*QuerySubspaceResponse) ProtoMessage

func (*QuerySubspaceResponse) ProtoMessage()

func (*QuerySubspaceResponse) Reset

func (m *QuerySubspaceResponse) Reset()

func (*QuerySubspaceResponse) Size

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

func (*QuerySubspaceResponse) String

func (m *QuerySubspaceResponse) String() string

func (*QuerySubspaceResponse) Unmarshal

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

func (*QuerySubspaceResponse) XXX_DiscardUnknown

func (m *QuerySubspaceResponse) XXX_DiscardUnknown()

func (*QuerySubspaceResponse) XXX_Marshal

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

func (*QuerySubspaceResponse) XXX_Merge

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

func (*QuerySubspaceResponse) XXX_Size

func (m *QuerySubspaceResponse) XXX_Size() int

func (*QuerySubspaceResponse) XXX_Unmarshal

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

type QuerySubspacesRequest

type QuerySubspacesRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySubspacesRequest is the request type for the Query/Subspaces RPC method

func NewQuerySubspacesRequest

func NewQuerySubspacesRequest(pagination *query.PageRequest) *QuerySubspacesRequest

NewQuerySubspacesRequest returns a new QuerySubspacesRequest instance

func (*QuerySubspacesRequest) Descriptor

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

func (*QuerySubspacesRequest) GetPagination

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

func (*QuerySubspacesRequest) Marshal

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

func (*QuerySubspacesRequest) MarshalTo

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

func (*QuerySubspacesRequest) MarshalToSizedBuffer

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

func (*QuerySubspacesRequest) ProtoMessage

func (*QuerySubspacesRequest) ProtoMessage()

func (*QuerySubspacesRequest) Reset

func (m *QuerySubspacesRequest) Reset()

func (*QuerySubspacesRequest) Size

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

func (*QuerySubspacesRequest) String

func (m *QuerySubspacesRequest) String() string

func (*QuerySubspacesRequest) Unmarshal

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

func (*QuerySubspacesRequest) XXX_DiscardUnknown

func (m *QuerySubspacesRequest) XXX_DiscardUnknown()

func (*QuerySubspacesRequest) XXX_Marshal

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

func (*QuerySubspacesRequest) XXX_Merge

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

func (*QuerySubspacesRequest) XXX_Size

func (m *QuerySubspacesRequest) XXX_Size() int

func (*QuerySubspacesRequest) XXX_Unmarshal

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

type QuerySubspacesResponse

type QuerySubspacesResponse struct {
	Subspaces  []Subspace          `protobuf:"bytes,1,rep,name=subspaces,proto3" json:"subspaces"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySubspacesResponse is the response type for the Query/Subspaces RPC method

func (*QuerySubspacesResponse) Descriptor

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

func (*QuerySubspacesResponse) GetPagination

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

func (*QuerySubspacesResponse) GetSubspaces

func (m *QuerySubspacesResponse) GetSubspaces() []Subspace

func (*QuerySubspacesResponse) Marshal

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

func (*QuerySubspacesResponse) MarshalTo

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

func (*QuerySubspacesResponse) MarshalToSizedBuffer

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

func (*QuerySubspacesResponse) ProtoMessage

func (*QuerySubspacesResponse) ProtoMessage()

func (*QuerySubspacesResponse) Reset

func (m *QuerySubspacesResponse) Reset()

func (*QuerySubspacesResponse) Size

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

func (*QuerySubspacesResponse) String

func (m *QuerySubspacesResponse) String() string

func (*QuerySubspacesResponse) Unmarshal

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

func (*QuerySubspacesResponse) XXX_DiscardUnknown

func (m *QuerySubspacesResponse) XXX_DiscardUnknown()

func (*QuerySubspacesResponse) XXX_Marshal

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

func (*QuerySubspacesResponse) XXX_Merge

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

func (*QuerySubspacesResponse) XXX_Size

func (m *QuerySubspacesResponse) XXX_Size() int

func (*QuerySubspacesResponse) XXX_Unmarshal

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

type QueryUserGroupMembersRequest

type QueryUserGroupMembersRequest struct {
	// Id of the subspace that contains the group
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the user group to query the members for
	GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserGroupMembersRequest is the request type for the Query/UserGroupMembers RPC method

func NewQueryUserGroupMembersRequest

func NewQueryUserGroupMembersRequest(
	subspaceID uint64, groupID uint32, pagination *query.PageRequest,
) *QueryUserGroupMembersRequest

NewQueryUserGroupMembersRequest returns a new QueryUserGroupMembersRequest instance

func (*QueryUserGroupMembersRequest) Descriptor

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

func (*QueryUserGroupMembersRequest) GetGroupId

func (m *QueryUserGroupMembersRequest) GetGroupId() uint32

func (*QueryUserGroupMembersRequest) GetPagination

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

func (*QueryUserGroupMembersRequest) GetSubspaceId

func (m *QueryUserGroupMembersRequest) GetSubspaceId() uint64

func (*QueryUserGroupMembersRequest) Marshal

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

func (*QueryUserGroupMembersRequest) MarshalTo

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

func (*QueryUserGroupMembersRequest) MarshalToSizedBuffer

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

func (*QueryUserGroupMembersRequest) ProtoMessage

func (*QueryUserGroupMembersRequest) ProtoMessage()

func (*QueryUserGroupMembersRequest) Reset

func (m *QueryUserGroupMembersRequest) Reset()

func (*QueryUserGroupMembersRequest) Size

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

func (*QueryUserGroupMembersRequest) String

func (*QueryUserGroupMembersRequest) Unmarshal

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

func (*QueryUserGroupMembersRequest) XXX_DiscardUnknown

func (m *QueryUserGroupMembersRequest) XXX_DiscardUnknown()

func (*QueryUserGroupMembersRequest) XXX_Marshal

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

func (*QueryUserGroupMembersRequest) XXX_Merge

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

func (*QueryUserGroupMembersRequest) XXX_Size

func (m *QueryUserGroupMembersRequest) XXX_Size() int

func (*QueryUserGroupMembersRequest) XXX_Unmarshal

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

type QueryUserGroupMembersResponse

type QueryUserGroupMembersResponse struct {
	Members    []string            `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserGroupMembersResponse is the response type for the Query/UserGroupMembers RPC method

func (*QueryUserGroupMembersResponse) Descriptor

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

func (*QueryUserGroupMembersResponse) GetMembers

func (m *QueryUserGroupMembersResponse) GetMembers() []string

func (*QueryUserGroupMembersResponse) GetPagination

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

func (*QueryUserGroupMembersResponse) Marshal

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

func (*QueryUserGroupMembersResponse) MarshalTo

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

func (*QueryUserGroupMembersResponse) MarshalToSizedBuffer

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

func (*QueryUserGroupMembersResponse) ProtoMessage

func (*QueryUserGroupMembersResponse) ProtoMessage()

func (*QueryUserGroupMembersResponse) Reset

func (m *QueryUserGroupMembersResponse) Reset()

func (*QueryUserGroupMembersResponse) Size

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

func (*QueryUserGroupMembersResponse) String

func (*QueryUserGroupMembersResponse) Unmarshal

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

func (*QueryUserGroupMembersResponse) XXX_DiscardUnknown

func (m *QueryUserGroupMembersResponse) XXX_DiscardUnknown()

func (*QueryUserGroupMembersResponse) XXX_Marshal

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

func (*QueryUserGroupMembersResponse) XXX_Merge

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

func (*QueryUserGroupMembersResponse) XXX_Size

func (m *QueryUserGroupMembersResponse) XXX_Size() int

func (*QueryUserGroupMembersResponse) XXX_Unmarshal

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

type QueryUserGroupRequest

type QueryUserGroupRequest struct {
	// Id of the subspace that contains the group
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the group to query
	GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
}

QueryUserGroupRequest is the request type for the Query/UserGroup RPC method

func NewQueryUserGroupRequest

func NewQueryUserGroupRequest(subspaceID uint64, groupID uint32) *QueryUserGroupRequest

NewQueryUserGroupRequest returns a new QueryUserGroupRequest instance

func (*QueryUserGroupRequest) Descriptor

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

func (*QueryUserGroupRequest) GetGroupId

func (m *QueryUserGroupRequest) GetGroupId() uint32

func (*QueryUserGroupRequest) GetSubspaceId

func (m *QueryUserGroupRequest) GetSubspaceId() uint64

func (*QueryUserGroupRequest) Marshal

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

func (*QueryUserGroupRequest) MarshalTo

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

func (*QueryUserGroupRequest) MarshalToSizedBuffer

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

func (*QueryUserGroupRequest) ProtoMessage

func (*QueryUserGroupRequest) ProtoMessage()

func (*QueryUserGroupRequest) Reset

func (m *QueryUserGroupRequest) Reset()

func (*QueryUserGroupRequest) Size

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

func (*QueryUserGroupRequest) String

func (m *QueryUserGroupRequest) String() string

func (*QueryUserGroupRequest) Unmarshal

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

func (*QueryUserGroupRequest) XXX_DiscardUnknown

func (m *QueryUserGroupRequest) XXX_DiscardUnknown()

func (*QueryUserGroupRequest) XXX_Marshal

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

func (*QueryUserGroupRequest) XXX_Merge

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

func (*QueryUserGroupRequest) XXX_Size

func (m *QueryUserGroupRequest) XXX_Size() int

func (*QueryUserGroupRequest) XXX_Unmarshal

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

type QueryUserGroupResponse

type QueryUserGroupResponse struct {
	Group UserGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group"`
}

QueryUserGroupResponse is the response type for the Query/UserGroup RPC method

func (*QueryUserGroupResponse) Descriptor

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

func (*QueryUserGroupResponse) GetGroup

func (m *QueryUserGroupResponse) GetGroup() UserGroup

func (*QueryUserGroupResponse) Marshal

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

func (*QueryUserGroupResponse) MarshalTo

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

func (*QueryUserGroupResponse) MarshalToSizedBuffer

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

func (*QueryUserGroupResponse) ProtoMessage

func (*QueryUserGroupResponse) ProtoMessage()

func (*QueryUserGroupResponse) Reset

func (m *QueryUserGroupResponse) Reset()

func (*QueryUserGroupResponse) Size

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

func (*QueryUserGroupResponse) String

func (m *QueryUserGroupResponse) String() string

func (*QueryUserGroupResponse) Unmarshal

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

func (*QueryUserGroupResponse) XXX_DiscardUnknown

func (m *QueryUserGroupResponse) XXX_DiscardUnknown()

func (*QueryUserGroupResponse) XXX_Marshal

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

func (*QueryUserGroupResponse) XXX_Merge

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

func (*QueryUserGroupResponse) XXX_Size

func (m *QueryUserGroupResponse) XXX_Size() int

func (*QueryUserGroupResponse) XXX_Unmarshal

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

type QueryUserGroupsRequest

type QueryUserGroupsRequest struct {
	// Id of the subspace to query the groups for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// (optional) Section id to query the groups for
	SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserGroupsRequest is the request type for the Query/UserGroups RPC method

func NewQueryUserGroupsRequest

func NewQueryUserGroupsRequest(subspaceID uint64, sectionID uint32, pagination *query.PageRequest) *QueryUserGroupsRequest

NewQueryUserGroupsRequest returns a new QueryUserGroupsRequest instance

func (*QueryUserGroupsRequest) Descriptor

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

func (*QueryUserGroupsRequest) GetPagination

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

func (*QueryUserGroupsRequest) GetSectionId

func (m *QueryUserGroupsRequest) GetSectionId() uint32

func (*QueryUserGroupsRequest) GetSubspaceId

func (m *QueryUserGroupsRequest) GetSubspaceId() uint64

func (*QueryUserGroupsRequest) Marshal

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

func (*QueryUserGroupsRequest) MarshalTo

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

func (*QueryUserGroupsRequest) MarshalToSizedBuffer

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

func (*QueryUserGroupsRequest) ProtoMessage

func (*QueryUserGroupsRequest) ProtoMessage()

func (*QueryUserGroupsRequest) Reset

func (m *QueryUserGroupsRequest) Reset()

func (*QueryUserGroupsRequest) Size

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

func (*QueryUserGroupsRequest) String

func (m *QueryUserGroupsRequest) String() string

func (*QueryUserGroupsRequest) Unmarshal

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

func (*QueryUserGroupsRequest) XXX_DiscardUnknown

func (m *QueryUserGroupsRequest) XXX_DiscardUnknown()

func (*QueryUserGroupsRequest) XXX_Marshal

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

func (*QueryUserGroupsRequest) XXX_Merge

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

func (*QueryUserGroupsRequest) XXX_Size

func (m *QueryUserGroupsRequest) XXX_Size() int

func (*QueryUserGroupsRequest) XXX_Unmarshal

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

type QueryUserGroupsResponse

type QueryUserGroupsResponse struct {
	Groups     []UserGroup         `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserGroupsResponse is the response type for the Query/UserGroups RPC method

func (*QueryUserGroupsResponse) Descriptor

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

func (*QueryUserGroupsResponse) GetGroups

func (m *QueryUserGroupsResponse) GetGroups() []UserGroup

func (*QueryUserGroupsResponse) GetPagination

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

func (*QueryUserGroupsResponse) Marshal

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

func (*QueryUserGroupsResponse) MarshalTo

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

func (*QueryUserGroupsResponse) MarshalToSizedBuffer

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

func (*QueryUserGroupsResponse) ProtoMessage

func (*QueryUserGroupsResponse) ProtoMessage()

func (*QueryUserGroupsResponse) Reset

func (m *QueryUserGroupsResponse) Reset()

func (*QueryUserGroupsResponse) Size

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

func (*QueryUserGroupsResponse) String

func (m *QueryUserGroupsResponse) String() string

func (*QueryUserGroupsResponse) Unmarshal

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

func (*QueryUserGroupsResponse) XXX_DiscardUnknown

func (m *QueryUserGroupsResponse) XXX_DiscardUnknown()

func (*QueryUserGroupsResponse) XXX_Marshal

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

func (*QueryUserGroupsResponse) XXX_Merge

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

func (*QueryUserGroupsResponse) XXX_Size

func (m *QueryUserGroupsResponse) XXX_Size() int

func (*QueryUserGroupsResponse) XXX_Unmarshal

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

type QueryUserPermissionsRequest

type QueryUserPermissionsRequest struct {
	// Id of the subspace to query the permissions for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the section to query the permissions for
	SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// Address of the user to query the permissions for
	User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

QueryUserPermissionsRequest is the request type for the Query/UserPermissions RPC method

func NewQueryUserPermissionsRequest

func NewQueryUserPermissionsRequest(subspaceID uint64, sectionID uint32, user string) *QueryUserPermissionsRequest

NewQueryUserPermissionsRequest returns a new QueryPermissionsRequest instance

func (*QueryUserPermissionsRequest) Descriptor

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

func (*QueryUserPermissionsRequest) Marshal

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

func (*QueryUserPermissionsRequest) MarshalTo

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

func (*QueryUserPermissionsRequest) MarshalToSizedBuffer

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

func (*QueryUserPermissionsRequest) ProtoMessage

func (*QueryUserPermissionsRequest) ProtoMessage()

func (*QueryUserPermissionsRequest) Reset

func (m *QueryUserPermissionsRequest) Reset()

func (*QueryUserPermissionsRequest) Size

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

func (*QueryUserPermissionsRequest) String

func (m *QueryUserPermissionsRequest) String() string

func (*QueryUserPermissionsRequest) Unmarshal

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

func (*QueryUserPermissionsRequest) XXX_DiscardUnknown

func (m *QueryUserPermissionsRequest) XXX_DiscardUnknown()

func (*QueryUserPermissionsRequest) XXX_Marshal

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

func (*QueryUserPermissionsRequest) XXX_Merge

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

func (*QueryUserPermissionsRequest) XXX_Size

func (m *QueryUserPermissionsRequest) XXX_Size() int

func (*QueryUserPermissionsRequest) XXX_Unmarshal

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

type QueryUserPermissionsResponse

type QueryUserPermissionsResponse struct {
	Permissions []string           `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"`
	Details     []PermissionDetail `protobuf:"bytes,2,rep,name=details,proto3" json:"details" yaml:"details"`
}

QueryUserPermissionsRequest is the response type for the Query/UserPermissions method

func (*QueryUserPermissionsResponse) Descriptor

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

func (*QueryUserPermissionsResponse) GetDetails

func (*QueryUserPermissionsResponse) GetPermissions

func (m *QueryUserPermissionsResponse) GetPermissions() []string

func (*QueryUserPermissionsResponse) Marshal

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

func (*QueryUserPermissionsResponse) MarshalTo

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

func (*QueryUserPermissionsResponse) MarshalToSizedBuffer

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

func (*QueryUserPermissionsResponse) ProtoMessage

func (*QueryUserPermissionsResponse) ProtoMessage()

func (*QueryUserPermissionsResponse) Reset

func (m *QueryUserPermissionsResponse) Reset()

func (*QueryUserPermissionsResponse) Size

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

func (*QueryUserPermissionsResponse) String

func (*QueryUserPermissionsResponse) Unmarshal

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

func (*QueryUserPermissionsResponse) XXX_DiscardUnknown

func (m *QueryUserPermissionsResponse) XXX_DiscardUnknown()

func (*QueryUserPermissionsResponse) XXX_Marshal

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

func (*QueryUserPermissionsResponse) XXX_Merge

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

func (*QueryUserPermissionsResponse) XXX_Size

func (m *QueryUserPermissionsResponse) XXX_Size() int

func (*QueryUserPermissionsResponse) XXX_Unmarshal

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

type Section

type Section struct {
	// Id of the subspace inside which the section exists
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Unique id of the section within the subspace
	ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// (optional) Id of the parent section
	ParentID uint32 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty" yaml:"parent_id"`
	// Name of the section within the subspace
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// (optional) Description of the section
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
}

Section contains the data of a single subspace section

func DefaultSection

func DefaultSection(subspaceID uint64) Section

DefaultSection returns the default section for the given subspace

func NewSection

func NewSection(subspaceID uint64, id uint32, parentID uint32, name string, description string) Section

NewSection returns a new Section instance

func (*Section) Descriptor

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

func (*Section) Equal

func (this *Section) Equal(that interface{}) bool

func (*Section) GetDescription

func (m *Section) GetDescription() string

func (*Section) GetID

func (m *Section) GetID() uint32

func (*Section) GetName

func (m *Section) GetName() string

func (*Section) GetParentID

func (m *Section) GetParentID() uint32

func (*Section) GetSubspaceID

func (m *Section) GetSubspaceID() uint64

func (*Section) Marshal

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

func (*Section) MarshalTo

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

func (*Section) MarshalToSizedBuffer

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

func (*Section) ProtoMessage

func (*Section) ProtoMessage()

func (*Section) Reset

func (m *Section) Reset()

func (*Section) Size

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

func (*Section) String

func (m *Section) String() string

func (*Section) Unmarshal

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

func (Section) Update

func (s Section) Update(update SectionUpdate) Section

Update updates the fields of a given section without validating it. Before storing the updated section, a validation with Validate() should be performed.

func (Section) Validate

func (s Section) Validate() error

Validate implements fmt.Validator

func (*Section) XXX_DiscardUnknown

func (m *Section) XXX_DiscardUnknown()

func (*Section) XXX_Marshal

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

func (*Section) XXX_Merge

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

func (*Section) XXX_Size

func (m *Section) XXX_Size() int

func (*Section) XXX_Unmarshal

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

type SectionUpdate

type SectionUpdate struct {
	Name        string
	Description string
}

SectionUpdate contains all the data that can be updated about a section. When performing an update, if a field should not be edited then it must be set to types.DoNotModify

func NewSectionUpdate

func NewSectionUpdate(name string, description string) SectionUpdate

NewSectionUpdate returns a new SectionUpdate instance

type Subspace

type Subspace struct {
	// Unique id that identifies the subspace
	ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Human-readable name of the subspace
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// Optional description of this subspace
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// Represents the account that is associated with the subspace and
	// should be used to connect external applications to verify this subspace
	Treasury string `protobuf:"bytes,4,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"`
	// Address of the user that owns the subspace
	Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// Address of the subspace creator
	Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
	// the creation time of the subspace
	CreationTime time.Time `protobuf:"bytes,7,opt,name=creation_time,json=creationTime,proto3,stdtime" json:"creation_time" yaml:"creation_time"`
}

Subspace contains all the data of a Desmos subspace

func NewSubspace

func NewSubspace(subspaceID uint64, name, description, treasury, owner, creator string, creationTime time.Time) Subspace

NewSubspace is a constructor for the Subspace type

func (*Subspace) Descriptor

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

func (*Subspace) Equal

func (this *Subspace) Equal(that interface{}) bool

func (*Subspace) GetCreationTime

func (m *Subspace) GetCreationTime() time.Time

func (*Subspace) GetCreator

func (m *Subspace) GetCreator() string

func (*Subspace) GetDescription

func (m *Subspace) GetDescription() string

func (*Subspace) GetID

func (m *Subspace) GetID() uint64

func (*Subspace) GetName

func (m *Subspace) GetName() string

func (*Subspace) GetOwner

func (m *Subspace) GetOwner() string

func (*Subspace) GetTreasury

func (m *Subspace) GetTreasury() string

func (*Subspace) Marshal

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

func (*Subspace) MarshalTo

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

func (*Subspace) MarshalToSizedBuffer

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

func (*Subspace) ProtoMessage

func (*Subspace) ProtoMessage()

func (*Subspace) Reset

func (m *Subspace) Reset()

func (*Subspace) Size

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

func (*Subspace) String

func (m *Subspace) String() string

func (*Subspace) Unmarshal

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

func (Subspace) Update

func (sub Subspace) Update(update SubspaceUpdate) Subspace

Update updates the fields of a given subspace without validating it. Before storing the updated subspace, a validation with Validate() should be performed.

func (Subspace) Validate

func (sub Subspace) Validate() error

Validate implements fmt.Validator

func (*Subspace) XXX_DiscardUnknown

func (m *Subspace) XXX_DiscardUnknown()

func (*Subspace) XXX_Marshal

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

func (*Subspace) XXX_Merge

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

func (*Subspace) XXX_Size

func (m *Subspace) XXX_Size() int

func (*Subspace) XXX_Unmarshal

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

type SubspaceData

type SubspaceData struct {
	SubspaceID    uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	NextGroupID   uint32 `protobuf:"varint,2,opt,name=next_group_id,json=nextGroupId,proto3" json:"next_group_id,omitempty"`
	NextSectionID uint32 `protobuf:"varint,3,opt,name=next_section_id,json=nextSectionId,proto3" json:"next_section_id,omitempty"`
}

SubspaceData contains the genesis data for a single subspace

func NewSubspaceData

func NewSubspaceData(subspaceID uint64, nextSectionID uint32, nextGroupID uint32) SubspaceData

NewSubspaceData returns a new SubspaceData instance

func (*SubspaceData) Descriptor

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

func (*SubspaceData) Equal

func (this *SubspaceData) Equal(that interface{}) bool

func (*SubspaceData) GetNextGroupID

func (m *SubspaceData) GetNextGroupID() uint32

func (*SubspaceData) GetNextSectionID

func (m *SubspaceData) GetNextSectionID() uint32

func (*SubspaceData) GetSubspaceID

func (m *SubspaceData) GetSubspaceID() uint64

func (*SubspaceData) Marshal

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

func (*SubspaceData) MarshalTo

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

func (*SubspaceData) MarshalToSizedBuffer

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

func (*SubspaceData) ProtoMessage

func (*SubspaceData) ProtoMessage()

func (*SubspaceData) Reset

func (m *SubspaceData) Reset()

func (*SubspaceData) Size

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

func (*SubspaceData) String

func (m *SubspaceData) String() string

func (*SubspaceData) Unmarshal

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

func (SubspaceData) Validate

func (data SubspaceData) Validate() error

Validate implements fmt.Validator

func (*SubspaceData) XXX_DiscardUnknown

func (m *SubspaceData) XXX_DiscardUnknown()

func (*SubspaceData) XXX_Marshal

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

func (*SubspaceData) XXX_Merge

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

func (*SubspaceData) XXX_Size

func (m *SubspaceData) XXX_Size() int

func (*SubspaceData) XXX_Unmarshal

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

type SubspaceMsg

type SubspaceMsg interface {
	sdk.Msg

	// GetSubspaceID returns the subspace id associated to this message
	GetSubspaceID() uint64
}

SubspaceMsg represents a generic message that is related to a subspace

type SubspaceUpdate

type SubspaceUpdate struct {
	Name        string
	Description string
	Treasury    string
	Owner       string
}

SubspaceUpdate contains all the data that can be updated about a subspace. When performing an update, if a field should not be edited then it must be set to types.DoNotModify

func NewSubspaceUpdate

func NewSubspaceUpdate(name, description, treasury, owner string) SubspaceUpdate

NewSubspaceUpdate builds a new SubspaceUpdate instance containing the given data

type SubspacesHooks

type SubspacesHooks interface {
	AfterSubspaceSaved(ctx sdk.Context, subspaceID uint64)   // Must be called when a subspace is saved
	AfterSubspaceDeleted(ctx sdk.Context, subspaceID uint64) // Must be called when a subspace is deleted

	AfterSubspaceSectionSaved(ctx sdk.Context, subspaceID uint64, sectionID uint32)   // Must be called when a subspace section is saved
	AfterSubspaceSectionDeleted(ctx sdk.Context, subspaceID uint64, sectionID uint32) // Must be called when a subspace section is deleted

	AfterSubspaceGroupSaved(ctx sdk.Context, subspaceID uint64, groupID uint32)                      // Must be called when a subspace group is created
	AfterSubspaceGroupMemberAdded(ctx sdk.Context, subspaceID uint64, groupID uint32, user string)   // Must be called when a user is added to a group
	AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user string) // Must be called when a user is removed from a group
	AfterSubspaceGroupDeleted(ctx sdk.Context, subspaceID uint64, groupID uint32)                    // Must be called when a subspace group is deleted

	AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string, permissions Permissions) // Must be called when a permission is set for a user
	AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string)                      // Must be called when a permission is removed for a user
}

SubspacesHooks event hooks for subspaces objects (noalias)

type SubspacesMsg

type SubspacesMsg struct {
	CreateSubspace          *json.RawMessage `json:"create_subspace"`
	EditSubspace            *json.RawMessage `json:"edit_subspace"`
	DeleteSubspace          *json.RawMessage `json:"delete_subspace"`
	CreateUserGroup         *json.RawMessage `json:"create_user_group"`
	EditUserGroup           *json.RawMessage `json:"edit_user_group"`
	SetUserGroupPermissions *json.RawMessage `json:"set_user_group_permissions"`
	DeleteUserGroup         *json.RawMessage `json:"delete_user_group"`
	AddUserToUserGroup      *json.RawMessage `json:"add_user_to_user_group"`
	RemoveUserFromUserGroup *json.RawMessage `json:"remove_user_from_user_group"`
	SetUserPermissions      *json.RawMessage `json:"set_user_permissions"`
}

type SubspacesQuery

type SubspacesQuery struct {
	Subspaces        *json.RawMessage `json:"subspaces"`
	Subspace         *json.RawMessage `json:"subspace"`
	UserGroups       *json.RawMessage `json:"user_groups"`
	UserGroup        *json.RawMessage `json:"user_group"`
	UserGroupMembers *json.RawMessage `json:"user_group_members"`
	UserPermissions  *json.RawMessage `json:"user_permissions"`
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddUserToUserGroup

func (*UnimplementedMsgServer) CreateSection

func (*UnimplementedMsgServer) CreateSubspace

func (*UnimplementedMsgServer) CreateUserGroup

func (*UnimplementedMsgServer) DeleteSection

func (*UnimplementedMsgServer) DeleteSubspace

func (*UnimplementedMsgServer) DeleteUserGroup

func (*UnimplementedMsgServer) EditSection

func (*UnimplementedMsgServer) EditSubspace

func (*UnimplementedMsgServer) EditUserGroup

func (*UnimplementedMsgServer) MoveSection

func (*UnimplementedMsgServer) MoveUserGroup

func (*UnimplementedMsgServer) RemoveUserFromUserGroup

func (*UnimplementedMsgServer) SetUserGroupPermissions

func (*UnimplementedMsgServer) SetUserPermissions

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Section

func (*UnimplementedQueryServer) Sections

func (*UnimplementedQueryServer) Subspace

func (*UnimplementedQueryServer) Subspaces

func (*UnimplementedQueryServer) UserGroup

func (*UnimplementedQueryServer) UserGroupMembers

func (*UnimplementedQueryServer) UserGroups

func (*UnimplementedQueryServer) UserPermissions

type UserGroup

type UserGroup struct {
	// ID of the subspace inside which this group exists
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// (optional) Id of the section inside which this group is valid
	SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// Unique id that identifies the group
	ID uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Human-readable name of the user group
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// Optional description of this group
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// Permissions that will be granted to all the users part of this group
	Permissions Permissions `protobuf:"bytes,6,rep,name=permissions,proto3,castrepeated=Permissions" json:"permissions,omitempty" yaml:"permissions"`
}

UserGroup represents a group of users

func DefaultUserGroup

func DefaultUserGroup(subspaceID uint64) UserGroup

DefaultUserGroup returns the default user group for the given subspace

func NewUserGroup

func NewUserGroup(subspaceID uint64, sectionID uint32, id uint32, name, description string, permissions Permissions) UserGroup

NewUserGroup returns a new UserGroup instance

func (*UserGroup) Descriptor

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

func (*UserGroup) Equal

func (this *UserGroup) Equal(that interface{}) bool

func (*UserGroup) GetDescription

func (m *UserGroup) GetDescription() string

func (*UserGroup) GetID

func (m *UserGroup) GetID() uint32

func (*UserGroup) GetName

func (m *UserGroup) GetName() string

func (*UserGroup) GetPermissions

func (m *UserGroup) GetPermissions() Permissions

func (*UserGroup) GetSectionID

func (m *UserGroup) GetSectionID() uint32

func (*UserGroup) GetSubspaceID

func (m *UserGroup) GetSubspaceID() uint64

func (*UserGroup) Marshal

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

func (*UserGroup) MarshalTo

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

func (*UserGroup) MarshalToSizedBuffer

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

func (*UserGroup) ProtoMessage

func (*UserGroup) ProtoMessage()

func (*UserGroup) Reset

func (m *UserGroup) Reset()

func (*UserGroup) Size

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

func (*UserGroup) String

func (m *UserGroup) String() string

func (*UserGroup) Unmarshal

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

func (UserGroup) Update

func (group UserGroup) Update(update GroupUpdate) UserGroup

Update updates the fields of a given group without validating it. Before storing the updated group, a validation with Validate() should be performed.

func (UserGroup) Validate

func (group UserGroup) Validate() error

Validate implements fmt.Validator

func (*UserGroup) XXX_DiscardUnknown

func (m *UserGroup) XXX_DiscardUnknown()

func (*UserGroup) XXX_Marshal

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

func (*UserGroup) XXX_Merge

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

func (*UserGroup) XXX_Size

func (m *UserGroup) XXX_Size() int

func (*UserGroup) XXX_Unmarshal

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

type UserGroupMemberEntry

type UserGroupMemberEntry struct {
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	GroupID    uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	User       string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
}

UserGroupMemberEntry contains the details of a user group member

func NewUserGroupMemberEntry

func NewUserGroupMemberEntry(subspaceID uint64, groupID uint32, user string) UserGroupMemberEntry

NewUserGroupMemberEntry returns a new UserGroupMemberEntry instance

func (*UserGroupMemberEntry) Descriptor

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

func (*UserGroupMemberEntry) Equal

func (this *UserGroupMemberEntry) Equal(that interface{}) bool

func (*UserGroupMemberEntry) GetGroupID

func (m *UserGroupMemberEntry) GetGroupID() uint32

func (*UserGroupMemberEntry) GetSubspaceID

func (m *UserGroupMemberEntry) GetSubspaceID() uint64

func (*UserGroupMemberEntry) GetUser

func (m *UserGroupMemberEntry) GetUser() string

func (*UserGroupMemberEntry) Marshal

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

func (*UserGroupMemberEntry) MarshalTo

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

func (*UserGroupMemberEntry) MarshalToSizedBuffer

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

func (*UserGroupMemberEntry) ProtoMessage

func (*UserGroupMemberEntry) ProtoMessage()

func (*UserGroupMemberEntry) Reset

func (m *UserGroupMemberEntry) Reset()

func (*UserGroupMemberEntry) Size

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

func (*UserGroupMemberEntry) String

func (m *UserGroupMemberEntry) String() string

func (*UserGroupMemberEntry) Unmarshal

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

func (UserGroupMemberEntry) Validate

func (entry UserGroupMemberEntry) Validate() error

Validate implements fmt.Validator

func (*UserGroupMemberEntry) XXX_DiscardUnknown

func (m *UserGroupMemberEntry) XXX_DiscardUnknown()

func (*UserGroupMemberEntry) XXX_Marshal

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

func (*UserGroupMemberEntry) XXX_Merge

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

func (*UserGroupMemberEntry) XXX_Size

func (m *UserGroupMemberEntry) XXX_Size() int

func (*UserGroupMemberEntry) XXX_Unmarshal

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

type UserPermission

type UserPermission struct {
	SubspaceID  uint64      `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	SectionID   uint32      `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"`
	User        string      `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Permissions Permissions `protobuf:"bytes,4,rep,name=permissions,proto3,castrepeated=Permissions" json:"permissions,omitempty"`
}

UserPermission represents a single Access Control List entry

func NewUserPermission

func NewUserPermission(subspaceID uint64, sectionID uint32, user string, permissions Permissions) UserPermission

NewUserPermission returns a new UserPermission instance

func (*UserPermission) Descriptor

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

func (*UserPermission) Equal

func (this *UserPermission) Equal(that interface{}) bool

func (*UserPermission) GetPermissions

func (m *UserPermission) GetPermissions() Permissions

func (*UserPermission) GetSectionID

func (m *UserPermission) GetSectionID() uint32

func (*UserPermission) GetSubspaceID

func (m *UserPermission) GetSubspaceID() uint64

func (*UserPermission) GetUser

func (m *UserPermission) GetUser() string

func (*UserPermission) Marshal

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

func (*UserPermission) MarshalTo

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

func (*UserPermission) MarshalToSizedBuffer

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

func (*UserPermission) ProtoMessage

func (*UserPermission) ProtoMessage()

func (*UserPermission) Reset

func (m *UserPermission) Reset()

func (*UserPermission) Size

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

func (*UserPermission) String

func (m *UserPermission) String() string

func (*UserPermission) Unmarshal

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

func (UserPermission) Validate

func (p UserPermission) Validate() error

Validate implements fmt.Validator

func (*UserPermission) XXX_DiscardUnknown

func (m *UserPermission) XXX_DiscardUnknown()

func (*UserPermission) XXX_Marshal

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

func (*UserPermission) XXX_Merge

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

func (*UserPermission) XXX_Size

func (m *UserPermission) XXX_Size() int

func (*UserPermission) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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