Documentation ¶
Index ¶
- func RegisterRolesServer(s *grpc.Server, srv RolesServer)
- type AuthorizeReply
- func (*AuthorizeReply) Descriptor() ([]byte, []int)
- func (m *AuthorizeReply) GetAuthorized() bool
- func (m *AuthorizeReply) GetError() *ErrorDescription
- func (*AuthorizeReply) ProtoMessage()
- func (m *AuthorizeReply) Reset()
- func (m *AuthorizeReply) String() string
- func (m *AuthorizeReply) XXX_DiscardUnknown()
- func (m *AuthorizeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizeReply) XXX_Merge(src proto.Message)
- func (m *AuthorizeReply) XXX_Size() int
- func (m *AuthorizeReply) XXX_Unmarshal(b []byte) error
- type ErrorDescription
- func (*ErrorDescription) Descriptor() ([]byte, []int)
- func (m *ErrorDescription) GetCategory() string
- func (m *ErrorDescription) GetCause() string
- func (m *ErrorDescription) GetCode() string
- func (m *ErrorDescription) GetCorrelationId() string
- func (m *ErrorDescription) GetDetails() map[string]string
- func (m *ErrorDescription) GetMessage() string
- func (m *ErrorDescription) GetStackTrace() string
- func (m *ErrorDescription) GetStatus() string
- func (m *ErrorDescription) GetType() string
- func (*ErrorDescription) ProtoMessage()
- func (m *ErrorDescription) Reset()
- func (m *ErrorDescription) String() string
- func (m *ErrorDescription) XXX_DiscardUnknown()
- func (m *ErrorDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrorDescription) XXX_Merge(src proto.Message)
- func (m *ErrorDescription) XXX_Size() int
- func (m *ErrorDescription) XXX_Unmarshal(b []byte) error
- type PagingParams
- func (*PagingParams) Descriptor() ([]byte, []int)
- func (m *PagingParams) GetSkip() int64
- func (m *PagingParams) GetTake() int32
- func (m *PagingParams) GetTotal() bool
- func (*PagingParams) ProtoMessage()
- func (m *PagingParams) Reset()
- func (m *PagingParams) String() string
- func (m *PagingParams) XXX_DiscardUnknown()
- func (m *PagingParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PagingParams) XXX_Merge(src proto.Message)
- func (m *PagingParams) XXX_Size() int
- func (m *PagingParams) XXX_Unmarshal(b []byte) error
- type RoleIdRequest
- func (*RoleIdRequest) Descriptor() ([]byte, []int)
- func (m *RoleIdRequest) GetCorrelationId() string
- func (m *RoleIdRequest) GetUserId() string
- func (*RoleIdRequest) ProtoMessage()
- func (m *RoleIdRequest) Reset()
- func (m *RoleIdRequest) String() string
- func (m *RoleIdRequest) XXX_DiscardUnknown()
- func (m *RoleIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleIdRequest) XXX_Merge(src proto.Message)
- func (m *RoleIdRequest) XXX_Size() int
- func (m *RoleIdRequest) XXX_Unmarshal(b []byte) error
- type RolesClient
- type RolesPageReply
- func (*RolesPageReply) Descriptor() ([]byte, []int)
- func (m *RolesPageReply) GetError() *ErrorDescription
- func (m *RolesPageReply) GetPage() *UserRolesPage
- func (*RolesPageReply) ProtoMessage()
- func (m *RolesPageReply) Reset()
- func (m *RolesPageReply) String() string
- func (m *RolesPageReply) XXX_DiscardUnknown()
- func (m *RolesPageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RolesPageReply) XXX_Merge(src proto.Message)
- func (m *RolesPageReply) XXX_Size() int
- func (m *RolesPageReply) XXX_Unmarshal(b []byte) error
- type RolesPageRequest
- func (*RolesPageRequest) Descriptor() ([]byte, []int)
- func (m *RolesPageRequest) GetCorrelationId() string
- func (m *RolesPageRequest) GetFilter() map[string]string
- func (m *RolesPageRequest) GetPaging() *PagingParams
- func (*RolesPageRequest) ProtoMessage()
- func (m *RolesPageRequest) Reset()
- func (m *RolesPageRequest) String() string
- func (m *RolesPageRequest) XXX_DiscardUnknown()
- func (m *RolesPageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RolesPageRequest) XXX_Merge(src proto.Message)
- func (m *RolesPageRequest) XXX_Size() int
- func (m *RolesPageRequest) XXX_Unmarshal(b []byte) error
- type RolesReply
- func (*RolesReply) Descriptor() ([]byte, []int)
- func (m *RolesReply) GetError() *ErrorDescription
- func (m *RolesReply) GetRoles() []string
- func (*RolesReply) ProtoMessage()
- func (m *RolesReply) Reset()
- func (m *RolesReply) String() string
- func (m *RolesReply) XXX_DiscardUnknown()
- func (m *RolesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RolesReply) XXX_Merge(src proto.Message)
- func (m *RolesReply) XXX_Size() int
- func (m *RolesReply) XXX_Unmarshal(b []byte) error
- type RolesRequest
- func (*RolesRequest) Descriptor() ([]byte, []int)
- func (m *RolesRequest) GetCorrelationId() string
- func (m *RolesRequest) GetRoles() []string
- func (m *RolesRequest) GetUserId() string
- func (*RolesRequest) ProtoMessage()
- func (m *RolesRequest) Reset()
- func (m *RolesRequest) String() string
- func (m *RolesRequest) XXX_DiscardUnknown()
- func (m *RolesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RolesRequest) XXX_Merge(src proto.Message)
- func (m *RolesRequest) XXX_Size() int
- func (m *RolesRequest) XXX_Unmarshal(b []byte) error
- type RolesServer
- type UnimplementedRolesServer
- func (*UnimplementedRolesServer) Authorize(ctx context.Context, req *RolesRequest) (*AuthorizeReply, error)
- func (*UnimplementedRolesServer) GetRolesByFilter(ctx context.Context, req *RolesPageRequest) (*RolesPageReply, error)
- func (*UnimplementedRolesServer) GetRolesById(ctx context.Context, req *RoleIdRequest) (*RolesReply, error)
- func (*UnimplementedRolesServer) GrantRoles(ctx context.Context, req *RolesRequest) (*RolesReply, error)
- func (*UnimplementedRolesServer) RevokeRoles(ctx context.Context, req *RolesRequest) (*RolesReply, error)
- func (*UnimplementedRolesServer) SetRoles(ctx context.Context, req *RolesRequest) (*RolesReply, error)
- type UserRoles
- func (*UserRoles) Descriptor() ([]byte, []int)
- func (m *UserRoles) GetId() string
- func (m *UserRoles) GetRoles() []string
- func (m *UserRoles) GetUpdateTime() string
- func (*UserRoles) ProtoMessage()
- func (m *UserRoles) Reset()
- func (m *UserRoles) String() string
- func (m *UserRoles) XXX_DiscardUnknown()
- func (m *UserRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserRoles) XXX_Merge(src proto.Message)
- func (m *UserRoles) XXX_Size() int
- func (m *UserRoles) XXX_Unmarshal(b []byte) error
- type UserRolesPage
- func (*UserRolesPage) Descriptor() ([]byte, []int)
- func (m *UserRolesPage) GetData() []*UserRoles
- func (m *UserRolesPage) GetTotal() int64
- func (*UserRolesPage) ProtoMessage()
- func (m *UserRolesPage) Reset()
- func (m *UserRolesPage) String() string
- func (m *UserRolesPage) XXX_DiscardUnknown()
- func (m *UserRolesPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserRolesPage) XXX_Merge(src proto.Message)
- func (m *UserRolesPage) XXX_Size() int
- func (m *UserRolesPage) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRolesServer ¶
func RegisterRolesServer(s *grpc.Server, srv RolesServer)
Types ¶
type AuthorizeReply ¶
type AuthorizeReply struct { Error *ErrorDescription `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Authorized bool `protobuf:"varint,2,opt,name=authorized,proto3" json:"authorized,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the authorize response
func (*AuthorizeReply) Descriptor ¶
func (*AuthorizeReply) Descriptor() ([]byte, []int)
func (*AuthorizeReply) GetAuthorized ¶
func (m *AuthorizeReply) GetAuthorized() bool
func (*AuthorizeReply) GetError ¶
func (m *AuthorizeReply) GetError() *ErrorDescription
func (*AuthorizeReply) ProtoMessage ¶
func (*AuthorizeReply) ProtoMessage()
func (*AuthorizeReply) Reset ¶
func (m *AuthorizeReply) Reset()
func (*AuthorizeReply) String ¶
func (m *AuthorizeReply) String() string
func (*AuthorizeReply) XXX_DiscardUnknown ¶
func (m *AuthorizeReply) XXX_DiscardUnknown()
func (*AuthorizeReply) XXX_Marshal ¶
func (m *AuthorizeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthorizeReply) XXX_Merge ¶
func (m *AuthorizeReply) XXX_Merge(src proto.Message)
func (*AuthorizeReply) XXX_Size ¶
func (m *AuthorizeReply) XXX_Size() int
func (*AuthorizeReply) XXX_Unmarshal ¶
func (m *AuthorizeReply) XXX_Unmarshal(b []byte) error
type ErrorDescription ¶
type ErrorDescription struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` CorrelationId string `protobuf:"bytes,4,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` Cause string `protobuf:"bytes,7,opt,name=cause,proto3" json:"cause,omitempty"` StackTrace string `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"` Details map[string]string `` /* 155-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ErrorDescription) Descriptor ¶
func (*ErrorDescription) Descriptor() ([]byte, []int)
func (*ErrorDescription) GetCategory ¶
func (m *ErrorDescription) GetCategory() string
func (*ErrorDescription) GetCause ¶
func (m *ErrorDescription) GetCause() string
func (*ErrorDescription) GetCode ¶
func (m *ErrorDescription) GetCode() string
func (*ErrorDescription) GetCorrelationId ¶
func (m *ErrorDescription) GetCorrelationId() string
func (*ErrorDescription) GetDetails ¶
func (m *ErrorDescription) GetDetails() map[string]string
func (*ErrorDescription) GetMessage ¶
func (m *ErrorDescription) GetMessage() string
func (*ErrorDescription) GetStackTrace ¶
func (m *ErrorDescription) GetStackTrace() string
func (*ErrorDescription) GetStatus ¶
func (m *ErrorDescription) GetStatus() string
func (*ErrorDescription) GetType ¶
func (m *ErrorDescription) GetType() string
func (*ErrorDescription) ProtoMessage ¶
func (*ErrorDescription) ProtoMessage()
func (*ErrorDescription) Reset ¶
func (m *ErrorDescription) Reset()
func (*ErrorDescription) String ¶
func (m *ErrorDescription) String() string
func (*ErrorDescription) XXX_DiscardUnknown ¶
func (m *ErrorDescription) XXX_DiscardUnknown()
func (*ErrorDescription) XXX_Marshal ¶
func (m *ErrorDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ErrorDescription) XXX_Merge ¶
func (m *ErrorDescription) XXX_Merge(src proto.Message)
func (*ErrorDescription) XXX_Size ¶
func (m *ErrorDescription) XXX_Size() int
func (*ErrorDescription) XXX_Unmarshal ¶
func (m *ErrorDescription) XXX_Unmarshal(b []byte) error
type PagingParams ¶
type PagingParams struct { Skip int64 `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"` Take int32 `protobuf:"varint,2,opt,name=take,proto3" json:"take,omitempty"` Total bool `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PagingParams) Descriptor ¶
func (*PagingParams) Descriptor() ([]byte, []int)
func (*PagingParams) GetSkip ¶
func (m *PagingParams) GetSkip() int64
func (*PagingParams) GetTake ¶
func (m *PagingParams) GetTake() int32
func (*PagingParams) GetTotal ¶
func (m *PagingParams) GetTotal() bool
func (*PagingParams) ProtoMessage ¶
func (*PagingParams) ProtoMessage()
func (*PagingParams) Reset ¶
func (m *PagingParams) Reset()
func (*PagingParams) String ¶
func (m *PagingParams) String() string
func (*PagingParams) XXX_DiscardUnknown ¶
func (m *PagingParams) XXX_DiscardUnknown()
func (*PagingParams) XXX_Marshal ¶
func (m *PagingParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PagingParams) XXX_Merge ¶
func (m *PagingParams) XXX_Merge(src proto.Message)
func (*PagingParams) XXX_Size ¶
func (m *PagingParams) XXX_Size() int
func (*PagingParams) XXX_Unmarshal ¶
func (m *PagingParams) XXX_Unmarshal(b []byte) error
type RoleIdRequest ¶
type RoleIdRequest struct { CorrelationId string `protobuf:"bytes,1,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the role id request.
func (*RoleIdRequest) Descriptor ¶
func (*RoleIdRequest) Descriptor() ([]byte, []int)
func (*RoleIdRequest) GetCorrelationId ¶
func (m *RoleIdRequest) GetCorrelationId() string
func (*RoleIdRequest) GetUserId ¶
func (m *RoleIdRequest) GetUserId() string
func (*RoleIdRequest) ProtoMessage ¶
func (*RoleIdRequest) ProtoMessage()
func (*RoleIdRequest) Reset ¶
func (m *RoleIdRequest) Reset()
func (*RoleIdRequest) String ¶
func (m *RoleIdRequest) String() string
func (*RoleIdRequest) XXX_DiscardUnknown ¶
func (m *RoleIdRequest) XXX_DiscardUnknown()
func (*RoleIdRequest) XXX_Marshal ¶
func (m *RoleIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleIdRequest) XXX_Merge ¶
func (m *RoleIdRequest) XXX_Merge(src proto.Message)
func (*RoleIdRequest) XXX_Size ¶
func (m *RoleIdRequest) XXX_Size() int
func (*RoleIdRequest) XXX_Unmarshal ¶
func (m *RoleIdRequest) XXX_Unmarshal(b []byte) error
type RolesClient ¶
type RolesClient interface { GetRolesByFilter(ctx context.Context, in *RolesPageRequest, opts ...grpc.CallOption) (*RolesPageReply, error) GetRolesById(ctx context.Context, in *RoleIdRequest, opts ...grpc.CallOption) (*RolesReply, error) SetRoles(ctx context.Context, in *RolesRequest, opts ...grpc.CallOption) (*RolesReply, error) GrantRoles(ctx context.Context, in *RolesRequest, opts ...grpc.CallOption) (*RolesReply, error) RevokeRoles(ctx context.Context, in *RolesRequest, opts ...grpc.CallOption) (*RolesReply, error) Authorize(ctx context.Context, in *RolesRequest, opts ...grpc.CallOption) (*AuthorizeReply, error) }
RolesClient is the client API for Roles service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRolesClient ¶
func NewRolesClient(cc *grpc.ClientConn) RolesClient
type RolesPageReply ¶
type RolesPageReply struct { Error *ErrorDescription `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Page *UserRolesPage `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the role page response
func (*RolesPageReply) Descriptor ¶
func (*RolesPageReply) Descriptor() ([]byte, []int)
func (*RolesPageReply) GetError ¶
func (m *RolesPageReply) GetError() *ErrorDescription
func (*RolesPageReply) GetPage ¶
func (m *RolesPageReply) GetPage() *UserRolesPage
func (*RolesPageReply) ProtoMessage ¶
func (*RolesPageReply) ProtoMessage()
func (*RolesPageReply) Reset ¶
func (m *RolesPageReply) Reset()
func (*RolesPageReply) String ¶
func (m *RolesPageReply) String() string
func (*RolesPageReply) XXX_DiscardUnknown ¶
func (m *RolesPageReply) XXX_DiscardUnknown()
func (*RolesPageReply) XXX_Marshal ¶
func (m *RolesPageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RolesPageReply) XXX_Merge ¶
func (m *RolesPageReply) XXX_Merge(src proto.Message)
func (*RolesPageReply) XXX_Size ¶
func (m *RolesPageReply) XXX_Size() int
func (*RolesPageReply) XXX_Unmarshal ¶
func (m *RolesPageReply) XXX_Unmarshal(b []byte) error
type RolesPageRequest ¶
type RolesPageRequest struct { CorrelationId string `protobuf:"bytes,1,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` Filter map[string]string `` /* 153-byte string literal not displayed */ Paging *PagingParams `protobuf:"bytes,3,opt,name=paging,proto3" json:"paging,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the role page request.
func (*RolesPageRequest) Descriptor ¶
func (*RolesPageRequest) Descriptor() ([]byte, []int)
func (*RolesPageRequest) GetCorrelationId ¶
func (m *RolesPageRequest) GetCorrelationId() string
func (*RolesPageRequest) GetFilter ¶
func (m *RolesPageRequest) GetFilter() map[string]string
func (*RolesPageRequest) GetPaging ¶
func (m *RolesPageRequest) GetPaging() *PagingParams
func (*RolesPageRequest) ProtoMessage ¶
func (*RolesPageRequest) ProtoMessage()
func (*RolesPageRequest) Reset ¶
func (m *RolesPageRequest) Reset()
func (*RolesPageRequest) String ¶
func (m *RolesPageRequest) String() string
func (*RolesPageRequest) XXX_DiscardUnknown ¶
func (m *RolesPageRequest) XXX_DiscardUnknown()
func (*RolesPageRequest) XXX_Marshal ¶
func (m *RolesPageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RolesPageRequest) XXX_Merge ¶
func (m *RolesPageRequest) XXX_Merge(src proto.Message)
func (*RolesPageRequest) XXX_Size ¶
func (m *RolesPageRequest) XXX_Size() int
func (*RolesPageRequest) XXX_Unmarshal ¶
func (m *RolesPageRequest) XXX_Unmarshal(b []byte) error
type RolesReply ¶
type RolesReply struct { Error *ErrorDescription `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the roles response
func (*RolesReply) Descriptor ¶
func (*RolesReply) Descriptor() ([]byte, []int)
func (*RolesReply) GetError ¶
func (m *RolesReply) GetError() *ErrorDescription
func (*RolesReply) GetRoles ¶
func (m *RolesReply) GetRoles() []string
func (*RolesReply) ProtoMessage ¶
func (*RolesReply) ProtoMessage()
func (*RolesReply) Reset ¶
func (m *RolesReply) Reset()
func (*RolesReply) String ¶
func (m *RolesReply) String() string
func (*RolesReply) XXX_DiscardUnknown ¶
func (m *RolesReply) XXX_DiscardUnknown()
func (*RolesReply) XXX_Marshal ¶
func (m *RolesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RolesReply) XXX_Merge ¶
func (m *RolesReply) XXX_Merge(src proto.Message)
func (*RolesReply) XXX_Size ¶
func (m *RolesReply) XXX_Size() int
func (*RolesReply) XXX_Unmarshal ¶
func (m *RolesReply) XXX_Unmarshal(b []byte) error
type RolesRequest ¶
type RolesRequest struct { CorrelationId string `protobuf:"bytes,1,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the roles request.
func (*RolesRequest) Descriptor ¶
func (*RolesRequest) Descriptor() ([]byte, []int)
func (*RolesRequest) GetCorrelationId ¶
func (m *RolesRequest) GetCorrelationId() string
func (*RolesRequest) GetRoles ¶
func (m *RolesRequest) GetRoles() []string
func (*RolesRequest) GetUserId ¶
func (m *RolesRequest) GetUserId() string
func (*RolesRequest) ProtoMessage ¶
func (*RolesRequest) ProtoMessage()
func (*RolesRequest) Reset ¶
func (m *RolesRequest) Reset()
func (*RolesRequest) String ¶
func (m *RolesRequest) String() string
func (*RolesRequest) XXX_DiscardUnknown ¶
func (m *RolesRequest) XXX_DiscardUnknown()
func (*RolesRequest) XXX_Marshal ¶
func (m *RolesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RolesRequest) XXX_Merge ¶
func (m *RolesRequest) XXX_Merge(src proto.Message)
func (*RolesRequest) XXX_Size ¶
func (m *RolesRequest) XXX_Size() int
func (*RolesRequest) XXX_Unmarshal ¶
func (m *RolesRequest) XXX_Unmarshal(b []byte) error
type RolesServer ¶
type RolesServer interface { GetRolesByFilter(context.Context, *RolesPageRequest) (*RolesPageReply, error) GetRolesById(context.Context, *RoleIdRequest) (*RolesReply, error) SetRoles(context.Context, *RolesRequest) (*RolesReply, error) GrantRoles(context.Context, *RolesRequest) (*RolesReply, error) RevokeRoles(context.Context, *RolesRequest) (*RolesReply, error) Authorize(context.Context, *RolesRequest) (*AuthorizeReply, error) }
RolesServer is the server API for Roles service.
type UnimplementedRolesServer ¶
type UnimplementedRolesServer struct { }
UnimplementedRolesServer can be embedded to have forward compatible implementations.
func (*UnimplementedRolesServer) Authorize ¶
func (*UnimplementedRolesServer) Authorize(ctx context.Context, req *RolesRequest) (*AuthorizeReply, error)
func (*UnimplementedRolesServer) GetRolesByFilter ¶
func (*UnimplementedRolesServer) GetRolesByFilter(ctx context.Context, req *RolesPageRequest) (*RolesPageReply, error)
func (*UnimplementedRolesServer) GetRolesById ¶
func (*UnimplementedRolesServer) GetRolesById(ctx context.Context, req *RoleIdRequest) (*RolesReply, error)
func (*UnimplementedRolesServer) GrantRoles ¶
func (*UnimplementedRolesServer) GrantRoles(ctx context.Context, req *RolesRequest) (*RolesReply, error)
func (*UnimplementedRolesServer) RevokeRoles ¶
func (*UnimplementedRolesServer) RevokeRoles(ctx context.Context, req *RolesRequest) (*RolesReply, error)
func (*UnimplementedRolesServer) SetRoles ¶
func (*UnimplementedRolesServer) SetRoles(ctx context.Context, req *RolesRequest) (*RolesReply, error)
type UserRoles ¶
type UserRoles struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UpdateTime string `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserRoles) Descriptor ¶
func (*UserRoles) GetUpdateTime ¶
func (*UserRoles) ProtoMessage ¶
func (*UserRoles) ProtoMessage()
func (*UserRoles) XXX_DiscardUnknown ¶
func (m *UserRoles) XXX_DiscardUnknown()
func (*UserRoles) XXX_Marshal ¶
func (*UserRoles) XXX_Unmarshal ¶
type UserRolesPage ¶
type UserRolesPage struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Data []*UserRoles `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserRolesPage) Descriptor ¶
func (*UserRolesPage) Descriptor() ([]byte, []int)
func (*UserRolesPage) GetData ¶
func (m *UserRolesPage) GetData() []*UserRoles
func (*UserRolesPage) GetTotal ¶
func (m *UserRolesPage) GetTotal() int64
func (*UserRolesPage) ProtoMessage ¶
func (*UserRolesPage) ProtoMessage()
func (*UserRolesPage) Reset ¶
func (m *UserRolesPage) Reset()
func (*UserRolesPage) String ¶
func (m *UserRolesPage) String() string
func (*UserRolesPage) XXX_DiscardUnknown ¶
func (m *UserRolesPage) XXX_DiscardUnknown()
func (*UserRolesPage) XXX_Marshal ¶
func (m *UserRolesPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserRolesPage) XXX_Merge ¶
func (m *UserRolesPage) XXX_Merge(src proto.Message)
func (*UserRolesPage) XXX_Size ¶
func (m *UserRolesPage) XXX_Size() int
func (*UserRolesPage) XXX_Unmarshal ¶
func (m *UserRolesPage) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.