Documentation
¶
Overview ¶
Package chremoas_roles is a generated protocol buffer package.
It is generated from these files:
roles.proto
It has these top-level messages:
NilMessage RoleMembershipRequest RoleMembershipResponse ListUserRolesRequest ListUserRolesResponse GetDiscordUserRequest GetDiscordUserListResponse GetDiscordUserResponse SyncRequest StringList Role UpdateInfo GetRolesResponse FilterList Filter Members MemberList
Package chremoas_roles is a generated protocol buffer package.
It is generated from these files:
roles.proto
It has these top-level messages:
NilMessage RoleMembershipRequest RoleMembershipResponse ListUserRolesRequest ListUserRolesResponse GetDiscordUserRequest GetDiscordUserListResponse GetDiscordUserResponse SyncRequest StringList Role UpdateInfo GetRolesResponse FilterList Filter Members MemberList
Index ¶
- func RegisterRolesHandler(s server.Server, hdlr RolesHandler, opts ...server.HandlerOption)
- type Filter
- type FilterList
- type GetDiscordUserListResponse
- type GetDiscordUserRequest
- type GetDiscordUserResponse
- func (*GetDiscordUserResponse) Descriptor() ([]byte, []int)
- func (m *GetDiscordUserResponse) GetAvatar() string
- func (m *GetDiscordUserResponse) GetBot() bool
- func (m *GetDiscordUserResponse) GetDiscriminator() string
- func (m *GetDiscordUserResponse) GetEmail() string
- func (m *GetDiscordUserResponse) GetId() string
- func (m *GetDiscordUserResponse) GetMfaEnabled() bool
- func (m *GetDiscordUserResponse) GetNick() string
- func (m *GetDiscordUserResponse) GetUsername() string
- func (m *GetDiscordUserResponse) GetVerified() bool
- func (*GetDiscordUserResponse) ProtoMessage()
- func (m *GetDiscordUserResponse) Reset()
- func (m *GetDiscordUserResponse) String() string
- type GetRolesResponse
- type ListUserRolesRequest
- type ListUserRolesResponse
- type MemberList
- type Members
- type NilMessage
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) GetColor() int32
- func (m *Role) GetFilterA() string
- func (m *Role) GetFilterB() string
- func (m *Role) GetHoist() bool
- func (m *Role) GetJoinable() bool
- func (m *Role) GetManaged() bool
- func (m *Role) GetMentionable() bool
- func (m *Role) GetName() string
- func (m *Role) GetPermissions() int32
- func (m *Role) GetPosition() int32
- func (m *Role) GetShortName() string
- func (m *Role) GetSig() bool
- func (m *Role) GetSync() bool
- func (m *Role) GetType() string
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) String() string
- type RoleMembershipRequest
- type RoleMembershipResponse
- type RolesHandler
- type RolesService
- type StringList
- type SyncRequest
- type UpdateInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRolesHandler ¶
func RegisterRolesHandler(s server.Server, hdlr RolesHandler, opts ...server.HandlerOption)
Types ¶
type Filter ¶
type Filter struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Description string `protobuf:"bytes,2,opt,name=Description" json:"Description,omitempty"` }
func (*Filter) Descriptor ¶
func (*Filter) GetDescription ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
type FilterList ¶
type FilterList struct {
FilterList []*Filter `protobuf:"bytes,1,rep,name=FilterList" json:"FilterList,omitempty"`
}
func (*FilterList) Descriptor ¶
func (*FilterList) Descriptor() ([]byte, []int)
func (*FilterList) GetFilterList ¶
func (m *FilterList) GetFilterList() []*Filter
func (*FilterList) ProtoMessage ¶
func (*FilterList) ProtoMessage()
func (*FilterList) Reset ¶
func (m *FilterList) Reset()
func (*FilterList) String ¶
func (m *FilterList) String() string
type GetDiscordUserListResponse ¶
type GetDiscordUserListResponse struct {
Users []*GetDiscordUserResponse `protobuf:"bytes,1,rep,name=Users" json:"Users,omitempty"`
}
func (*GetDiscordUserListResponse) Descriptor ¶
func (*GetDiscordUserListResponse) Descriptor() ([]byte, []int)
func (*GetDiscordUserListResponse) GetUsers ¶
func (m *GetDiscordUserListResponse) GetUsers() []*GetDiscordUserResponse
func (*GetDiscordUserListResponse) ProtoMessage ¶
func (*GetDiscordUserListResponse) ProtoMessage()
func (*GetDiscordUserListResponse) Reset ¶
func (m *GetDiscordUserListResponse) Reset()
func (*GetDiscordUserListResponse) String ¶
func (m *GetDiscordUserListResponse) String() string
type GetDiscordUserRequest ¶
type GetDiscordUserRequest struct {
UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"`
}
func (*GetDiscordUserRequest) Descriptor ¶
func (*GetDiscordUserRequest) Descriptor() ([]byte, []int)
func (*GetDiscordUserRequest) GetUserId ¶
func (m *GetDiscordUserRequest) GetUserId() string
func (*GetDiscordUserRequest) ProtoMessage ¶
func (*GetDiscordUserRequest) ProtoMessage()
func (*GetDiscordUserRequest) Reset ¶
func (m *GetDiscordUserRequest) Reset()
func (*GetDiscordUserRequest) String ¶
func (m *GetDiscordUserRequest) String() string
type GetDiscordUserResponse ¶
type GetDiscordUserResponse struct { Id string `protobuf:"bytes,1,opt,name=Id" json:"Id,omitempty"` Username string `protobuf:"bytes,2,opt,name=Username" json:"Username,omitempty"` Discriminator string `protobuf:"bytes,3,opt,name=Discriminator" json:"Discriminator,omitempty"` Avatar string `protobuf:"bytes,4,opt,name=Avatar" json:"Avatar,omitempty"` Bot bool `protobuf:"varint,5,opt,name=Bot" json:"Bot,omitempty"` MfaEnabled bool `protobuf:"varint,6,opt,name=MfaEnabled" json:"MfaEnabled,omitempty"` Verified bool `protobuf:"varint,7,opt,name=Verified" json:"Verified,omitempty"` Email string `protobuf:"bytes,8,opt,name=Email" json:"Email,omitempty"` Nick string `protobuf:"bytes,9,opt,name=Nick" json:"Nick,omitempty"` }
func (*GetDiscordUserResponse) Descriptor ¶
func (*GetDiscordUserResponse) Descriptor() ([]byte, []int)
func (*GetDiscordUserResponse) GetAvatar ¶
func (m *GetDiscordUserResponse) GetAvatar() string
func (*GetDiscordUserResponse) GetBot ¶
func (m *GetDiscordUserResponse) GetBot() bool
func (*GetDiscordUserResponse) GetDiscriminator ¶
func (m *GetDiscordUserResponse) GetDiscriminator() string
func (*GetDiscordUserResponse) GetEmail ¶
func (m *GetDiscordUserResponse) GetEmail() string
func (*GetDiscordUserResponse) GetId ¶
func (m *GetDiscordUserResponse) GetId() string
func (*GetDiscordUserResponse) GetMfaEnabled ¶
func (m *GetDiscordUserResponse) GetMfaEnabled() bool
func (*GetDiscordUserResponse) GetNick ¶
func (m *GetDiscordUserResponse) GetNick() string
func (*GetDiscordUserResponse) GetUsername ¶
func (m *GetDiscordUserResponse) GetUsername() string
func (*GetDiscordUserResponse) GetVerified ¶
func (m *GetDiscordUserResponse) GetVerified() bool
func (*GetDiscordUserResponse) ProtoMessage ¶
func (*GetDiscordUserResponse) ProtoMessage()
func (*GetDiscordUserResponse) Reset ¶
func (m *GetDiscordUserResponse) Reset()
func (*GetDiscordUserResponse) String ¶
func (m *GetDiscordUserResponse) String() string
type GetRolesResponse ¶
type GetRolesResponse struct {
Roles []*Role `protobuf:"bytes,1,rep,name=Roles" json:"Roles,omitempty"`
}
func (*GetRolesResponse) Descriptor ¶
func (*GetRolesResponse) Descriptor() ([]byte, []int)
func (*GetRolesResponse) GetRoles ¶
func (m *GetRolesResponse) GetRoles() []*Role
func (*GetRolesResponse) ProtoMessage ¶
func (*GetRolesResponse) ProtoMessage()
func (*GetRolesResponse) Reset ¶
func (m *GetRolesResponse) Reset()
func (*GetRolesResponse) String ¶
func (m *GetRolesResponse) String() string
type ListUserRolesRequest ¶
type ListUserRolesRequest struct {
UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"`
}
func (*ListUserRolesRequest) Descriptor ¶
func (*ListUserRolesRequest) Descriptor() ([]byte, []int)
func (*ListUserRolesRequest) GetUserId ¶
func (m *ListUserRolesRequest) GetUserId() string
func (*ListUserRolesRequest) ProtoMessage ¶
func (*ListUserRolesRequest) ProtoMessage()
func (*ListUserRolesRequest) Reset ¶
func (m *ListUserRolesRequest) Reset()
func (*ListUserRolesRequest) String ¶
func (m *ListUserRolesRequest) String() string
type ListUserRolesResponse ¶
type ListUserRolesResponse struct {
Roles []*Role `protobuf:"bytes,1,rep,name=Roles" json:"Roles,omitempty"`
}
func (*ListUserRolesResponse) Descriptor ¶
func (*ListUserRolesResponse) Descriptor() ([]byte, []int)
func (*ListUserRolesResponse) GetRoles ¶
func (m *ListUserRolesResponse) GetRoles() []*Role
func (*ListUserRolesResponse) ProtoMessage ¶
func (*ListUserRolesResponse) ProtoMessage()
func (*ListUserRolesResponse) Reset ¶
func (m *ListUserRolesResponse) Reset()
func (*ListUserRolesResponse) String ¶
func (m *ListUserRolesResponse) String() string
type MemberList ¶
type MemberList struct {
Members []string `protobuf:"bytes,1,rep,name=Members" json:"Members,omitempty"`
}
func (*MemberList) Descriptor ¶
func (*MemberList) Descriptor() ([]byte, []int)
func (*MemberList) GetMembers ¶
func (m *MemberList) GetMembers() []string
func (*MemberList) ProtoMessage ¶
func (*MemberList) ProtoMessage()
func (*MemberList) Reset ¶
func (m *MemberList) Reset()
func (*MemberList) String ¶
func (m *MemberList) String() string
type Members ¶
type Members struct { Name []string `protobuf:"bytes,1,rep,name=Name" json:"Name,omitempty"` Filter string `protobuf:"bytes,2,opt,name=Filter" json:"Filter,omitempty"` }
func (*Members) Descriptor ¶
func (*Members) ProtoMessage ¶
func (*Members) ProtoMessage()
type NilMessage ¶
type NilMessage struct { }
func (*NilMessage) Descriptor ¶
func (*NilMessage) Descriptor() ([]byte, []int)
func (*NilMessage) ProtoMessage ¶
func (*NilMessage) ProtoMessage()
func (*NilMessage) Reset ¶
func (m *NilMessage) Reset()
func (*NilMessage) String ¶
func (m *NilMessage) String() string
type Role ¶
type Role struct { Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"` ShortName string `protobuf:"bytes,2,opt,name=ShortName" json:"ShortName,omitempty"` FilterA string `protobuf:"bytes,3,opt,name=FilterA" json:"FilterA,omitempty"` FilterB string `protobuf:"bytes,4,opt,name=FilterB" json:"FilterB,omitempty"` Sig bool `protobuf:"varint,5,opt,name=Sig" json:"Sig,omitempty"` Joinable bool `protobuf:"varint,6,opt,name=Joinable" json:"Joinable,omitempty"` Sync bool `protobuf:"varint,7,opt,name=Sync" json:"Sync,omitempty"` // Discord Name string `protobuf:"bytes,20,opt,name=Name" json:"Name,omitempty"` Color int32 `protobuf:"varint,21,opt,name=Color" json:"Color,omitempty"` Hoist bool `protobuf:"varint,22,opt,name=Hoist" json:"Hoist,omitempty"` Position int32 `protobuf:"varint,23,opt,name=Position" json:"Position,omitempty"` Permissions int32 `protobuf:"varint,24,opt,name=Permissions" json:"Permissions,omitempty"` Managed bool `protobuf:"varint,25,opt,name=Managed" json:"Managed,omitempty"` Mentionable bool `protobuf:"varint,26,opt,name=Mentionable" json:"Mentionable,omitempty"` }
func (*Role) Descriptor ¶
func (*Role) GetFilterA ¶
func (*Role) GetFilterB ¶
func (*Role) GetJoinable ¶
func (*Role) GetManaged ¶
func (*Role) GetMentionable ¶
func (*Role) GetPermissions ¶
func (*Role) GetPosition ¶
func (*Role) GetShortName ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
type RoleMembershipRequest ¶
type RoleMembershipRequest struct {
Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
}
func (*RoleMembershipRequest) Descriptor ¶
func (*RoleMembershipRequest) Descriptor() ([]byte, []int)
func (*RoleMembershipRequest) GetName ¶
func (m *RoleMembershipRequest) GetName() string
func (*RoleMembershipRequest) ProtoMessage ¶
func (*RoleMembershipRequest) ProtoMessage()
func (*RoleMembershipRequest) Reset ¶
func (m *RoleMembershipRequest) Reset()
func (*RoleMembershipRequest) String ¶
func (m *RoleMembershipRequest) String() string
type RoleMembershipResponse ¶
type RoleMembershipResponse struct {
Members []string `protobuf:"bytes,1,rep,name=Members" json:"Members,omitempty"`
}
func (*RoleMembershipResponse) Descriptor ¶
func (*RoleMembershipResponse) Descriptor() ([]byte, []int)
func (*RoleMembershipResponse) GetMembers ¶
func (m *RoleMembershipResponse) GetMembers() []string
func (*RoleMembershipResponse) ProtoMessage ¶
func (*RoleMembershipResponse) ProtoMessage()
func (*RoleMembershipResponse) Reset ¶
func (m *RoleMembershipResponse) Reset()
func (*RoleMembershipResponse) String ¶
func (m *RoleMembershipResponse) String() string
type RolesHandler ¶
type RolesHandler interface { AddRole(context.Context, *Role, *NilMessage) error UpdateRole(context.Context, *UpdateInfo, *NilMessage) error RemoveRole(context.Context, *Role, *NilMessage) error GetRoles(context.Context, *NilMessage, *GetRolesResponse) error GetRole(context.Context, *Role, *Role) error GetRoleKeys(context.Context, *NilMessage, *StringList) error GetRoleTypes(context.Context, *NilMessage, *StringList) error GetRoleMembership(context.Context, *RoleMembershipRequest, *RoleMembershipResponse) error ListUserRoles(context.Context, *ListUserRolesRequest, *ListUserRolesResponse) error GetFilters(context.Context, *NilMessage, *FilterList) error AddFilter(context.Context, *Filter, *NilMessage) error RemoveFilter(context.Context, *Filter, *NilMessage) error GetMembers(context.Context, *Filter, *MemberList) error AddMembers(context.Context, *Members, *NilMessage) error RemoveMembers(context.Context, *Members, *NilMessage) error SyncToChatService(context.Context, *SyncRequest, *NilMessage) error GetDiscordUser(context.Context, *GetDiscordUserRequest, *GetDiscordUserResponse) error GetDiscordUserList(context.Context, *NilMessage, *GetDiscordUserListResponse) error }
type RolesService ¶
type RolesService interface { AddRole(ctx context.Context, in *Role, opts ...client.CallOption) (*NilMessage, error) UpdateRole(ctx context.Context, in *UpdateInfo, opts ...client.CallOption) (*NilMessage, error) RemoveRole(ctx context.Context, in *Role, opts ...client.CallOption) (*NilMessage, error) GetRoles(ctx context.Context, in *NilMessage, opts ...client.CallOption) (*GetRolesResponse, error) GetRole(ctx context.Context, in *Role, opts ...client.CallOption) (*Role, error) GetRoleKeys(ctx context.Context, in *NilMessage, opts ...client.CallOption) (*StringList, error) GetRoleTypes(ctx context.Context, in *NilMessage, opts ...client.CallOption) (*StringList, error) GetRoleMembership(ctx context.Context, in *RoleMembershipRequest, opts ...client.CallOption) (*RoleMembershipResponse, error) ListUserRoles(ctx context.Context, in *ListUserRolesRequest, opts ...client.CallOption) (*ListUserRolesResponse, error) GetFilters(ctx context.Context, in *NilMessage, opts ...client.CallOption) (*FilterList, error) AddFilter(ctx context.Context, in *Filter, opts ...client.CallOption) (*NilMessage, error) RemoveFilter(ctx context.Context, in *Filter, opts ...client.CallOption) (*NilMessage, error) GetMembers(ctx context.Context, in *Filter, opts ...client.CallOption) (*MemberList, error) AddMembers(ctx context.Context, in *Members, opts ...client.CallOption) (*NilMessage, error) RemoveMembers(ctx context.Context, in *Members, opts ...client.CallOption) (*NilMessage, error) SyncToChatService(ctx context.Context, in *SyncRequest, opts ...client.CallOption) (*NilMessage, error) GetDiscordUser(ctx context.Context, in *GetDiscordUserRequest, opts ...client.CallOption) (*GetDiscordUserResponse, error) GetDiscordUserList(ctx context.Context, in *NilMessage, opts ...client.CallOption) (*GetDiscordUserListResponse, error) }
func NewRolesService ¶
func NewRolesService(name string, c client.Client) RolesService
type StringList ¶
type StringList struct {
Value []string `protobuf:"bytes,1,rep,name=Value" json:"Value,omitempty"`
}
func (*StringList) Descriptor ¶
func (*StringList) Descriptor() ([]byte, []int)
func (*StringList) GetValue ¶
func (m *StringList) GetValue() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) Reset ¶
func (m *StringList) Reset()
func (*StringList) String ¶
func (m *StringList) String() string
type SyncRequest ¶
type SyncRequest struct { ChannelId string `protobuf:"bytes,1,opt,name=ChannelId" json:"ChannelId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=UserId" json:"UserId,omitempty"` SendMessage bool `protobuf:"varint,3,opt,name=SendMessage" json:"SendMessage,omitempty"` }
func (*SyncRequest) Descriptor ¶
func (*SyncRequest) Descriptor() ([]byte, []int)
func (*SyncRequest) GetChannelId ¶
func (m *SyncRequest) GetChannelId() string
func (*SyncRequest) GetSendMessage ¶
func (m *SyncRequest) GetSendMessage() bool
func (*SyncRequest) GetUserId ¶
func (m *SyncRequest) GetUserId() string
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) Reset ¶
func (m *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (m *SyncRequest) String() string
type UpdateInfo ¶
type UpdateInfo struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Key string `protobuf:"bytes,2,opt,name=Key" json:"Key,omitempty"` Value string `protobuf:"bytes,3,opt,name=Value" json:"Value,omitempty"` }
func (*UpdateInfo) Descriptor ¶
func (*UpdateInfo) Descriptor() ([]byte, []int)
func (*UpdateInfo) GetKey ¶
func (m *UpdateInfo) GetKey() string
func (*UpdateInfo) GetName ¶
func (m *UpdateInfo) GetName() string
func (*UpdateInfo) GetValue ¶
func (m *UpdateInfo) GetValue() string
func (*UpdateInfo) ProtoMessage ¶
func (*UpdateInfo) ProtoMessage()
func (*UpdateInfo) Reset ¶
func (m *UpdateInfo) Reset()
func (*UpdateInfo) String ¶
func (m *UpdateInfo) String() string
Click to show internal directories.
Click to hide internal directories.