Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_role_role_proto protoreflect.FileDescriptor + func NewRoleEndpoints() []*api.Endpoint + func RegisterRoleHandler(s server.Server, hdlr RoleHandler, opts ...server.HandlerOption) error + type AddRoleReq struct + Desc string + RoleID uint32 + RoleName string + Routes []*Route + func (*AddRoleReq) Descriptor() ([]byte, []int) + func (*AddRoleReq) ProtoMessage() + func (x *AddRoleReq) GetDesc() string + func (x *AddRoleReq) GetRoleID() uint32 + func (x *AddRoleReq) GetRoleName() string + func (x *AddRoleReq) GetRoutes() []*Route + func (x *AddRoleReq) ProtoReflect() protoreflect.Message + func (x *AddRoleReq) Reset() + func (x *AddRoleReq) String() string + type AddRoleResp struct + func (*AddRoleResp) Descriptor() ([]byte, []int) + func (*AddRoleResp) ProtoMessage() + func (x *AddRoleResp) ProtoReflect() protoreflect.Message + func (x *AddRoleResp) Reset() + func (x *AddRoleResp) String() string + type AuthReq struct + Method string + RoleID uint32 + URL string + func (*AuthReq) Descriptor() ([]byte, []int) + func (*AuthReq) ProtoMessage() + func (x *AuthReq) GetMethod() string + func (x *AuthReq) GetRoleID() uint32 + func (x *AuthReq) GetURL() string + func (x *AuthReq) ProtoReflect() protoreflect.Message + func (x *AuthReq) Reset() + func (x *AuthReq) String() string + type AuthResp struct + func (*AuthResp) Descriptor() ([]byte, []int) + func (*AuthResp) ProtoMessage() + func (x *AuthResp) ProtoReflect() protoreflect.Message + func (x *AuthResp) Reset() + func (x *AuthResp) String() string + type DeleteRoleResp struct + func (*DeleteRoleResp) Descriptor() ([]byte, []int) + func (*DeleteRoleResp) ProtoMessage() + func (x *DeleteRoleResp) ProtoReflect() protoreflect.Message + func (x *DeleteRoleResp) Reset() + func (x *DeleteRoleResp) String() string + type IdReq struct + RoleID int32 + func (*IdReq) Descriptor() ([]byte, []int) + func (*IdReq) ProtoMessage() + func (x *IdReq) GetRoleID() int32 + func (x *IdReq) ProtoReflect() protoreflect.Message + func (x *IdReq) Reset() + func (x *IdReq) String() string + type Parameter struct + Key string + Value string + func (*Parameter) Descriptor() ([]byte, []int) + func (*Parameter) ProtoMessage() + func (x *Parameter) GetKey() string + func (x *Parameter) GetValue() string + func (x *Parameter) ProtoReflect() protoreflect.Message + func (x *Parameter) Reset() + func (x *Parameter) String() string + type Query struct + Limit uint32 + Offset uint32 + Page uint32 + PerPage uint32 + QueryParams []*Parameter + QueryString string + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (x *Query) GetLimit() uint32 + func (x *Query) GetOffset() uint32 + func (x *Query) GetPage() uint32 + func (x *Query) GetPerPage() uint32 + func (x *Query) GetQueryParams() []*Parameter + func (x *Query) GetQueryString() string + func (x *Query) ProtoReflect() protoreflect.Message + func (x *Query) Reset() + func (x *Query) String() string + type RoleHandler interface + AddRole func(context.Context, *AddRoleReq, *AddRoleResp) error + AuthRole func(context.Context, *AuthReq, *AuthResp) error + DeleteRole func(context.Context, *IdReq, *DeleteRoleResp) error + GetRole func(context.Context, *IdReq, *RoleResp) error + GetRoles func(context.Context, *Query, *RolesResp) error + UpdateRole func(context.Context, *UpdateReq, *UpdateResp) error + type RoleResp struct + Desc string + RoleID uint32 + RoleName string + Routes []*Route + func (*RoleResp) Descriptor() ([]byte, []int) + func (*RoleResp) ProtoMessage() + func (x *RoleResp) GetDesc() string + func (x *RoleResp) GetRoleID() uint32 + func (x *RoleResp) GetRoleName() string + func (x *RoleResp) GetRoutes() []*Route + func (x *RoleResp) ProtoReflect() protoreflect.Message + func (x *RoleResp) Reset() + func (x *RoleResp) String() string + type RoleService interface + AddRole func(ctx context.Context, in *AddRoleReq, opts ...client.CallOption) (*AddRoleResp, error) + AuthRole func(ctx context.Context, in *AuthReq, opts ...client.CallOption) (*AuthResp, error) + DeleteRole func(ctx context.Context, in *IdReq, opts ...client.CallOption) (*DeleteRoleResp, error) + GetRole func(ctx context.Context, in *IdReq, opts ...client.CallOption) (*RoleResp, error) + GetRoles func(ctx context.Context, in *Query, opts ...client.CallOption) (*RolesResp, error) + UpdateRole func(ctx context.Context, in *UpdateReq, opts ...client.CallOption) (*UpdateResp, error) + func NewRoleService(name string, c client.Client) RoleService + type RolesResp struct + Currpages uint32 + Roles []*RoleResp + Totalpages uint32 + Totals uint32 + func (*RolesResp) Descriptor() ([]byte, []int) + func (*RolesResp) ProtoMessage() + func (x *RolesResp) GetCurrpages() uint32 + func (x *RolesResp) GetRoles() []*RoleResp + func (x *RolesResp) GetTotalpages() uint32 + func (x *RolesResp) GetTotals() uint32 + func (x *RolesResp) ProtoReflect() protoreflect.Message + func (x *RolesResp) Reset() + func (x *RolesResp) String() string + type Route struct + Children []*Route + Component string + Hidden bool + Meta *RouteMeta + Method string + Name string + Path string + Redirect string + func (*Route) Descriptor() ([]byte, []int) + func (*Route) ProtoMessage() + func (x *Route) GetChildren() []*Route + func (x *Route) GetComponent() string + func (x *Route) GetHidden() bool + func (x *Route) GetMeta() *RouteMeta + func (x *Route) GetMethod() string + func (x *Route) GetName() string + func (x *Route) GetPath() string + func (x *Route) GetRedirect() string + func (x *Route) ProtoReflect() protoreflect.Message + func (x *Route) Reset() + func (x *Route) String() string + type RouteMeta struct + Icon string + Nocache bool + Title string + func (*RouteMeta) Descriptor() ([]byte, []int) + func (*RouteMeta) ProtoMessage() + func (x *RouteMeta) GetIcon() string + func (x *RouteMeta) GetNocache() bool + func (x *RouteMeta) GetTitle() string + func (x *RouteMeta) ProtoReflect() protoreflect.Message + func (x *RouteMeta) Reset() + func (x *RouteMeta) String() string + type UpdateReq struct + Desc string + RoleID int32 + RoleName string + Routes []*Route + func (*UpdateReq) Descriptor() ([]byte, []int) + func (*UpdateReq) ProtoMessage() + func (x *UpdateReq) GetDesc() string + func (x *UpdateReq) GetRoleID() int32 + func (x *UpdateReq) GetRoleName() string + func (x *UpdateReq) GetRoutes() []*Route + func (x *UpdateReq) ProtoReflect() protoreflect.Message + func (x *UpdateReq) Reset() + func (x *UpdateReq) String() string + type UpdateResp struct + func (*UpdateResp) Descriptor() ([]byte, []int) + func (*UpdateResp) ProtoMessage() + func (x *UpdateResp) ProtoReflect() protoreflect.Message + func (x *UpdateResp) Reset() + func (x *UpdateResp) String() string