Documentation ¶
Index ¶
- Variables
- type DataRule
- func (*DataRule) Descriptor() ([]byte, []int)
- func (m *DataRule) GetCode() string
- func (m *DataRule) GetSummary() string
- func (m *DataRule) Marshal() (dAtA []byte, err error)
- func (m *DataRule) MarshalTo(dAtA []byte) (int, error)
- func (m *DataRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DataRule) ProtoMessage()
- func (m *DataRule) Reset()
- func (m *DataRule) Size() (n int)
- func (m *DataRule) String() string
- func (m *DataRule) Unmarshal(dAtA []byte) error
- func (m *DataRule) XXX_DiscardUnknown()
- func (m *DataRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataRule) XXX_Merge(src proto.Message)
- func (m *DataRule) XXX_Size() int
- func (m *DataRule) XXX_Unmarshal(b []byte) error
- type HttpRule
- func (*HttpRule) Descriptor() ([]byte, []int)
- func (m *HttpRule) GetApp() string
- func (m *HttpRule) GetGet() string
- func (m *HttpRule) GetPattern() isHttpRule_Pattern
- func (m *HttpRule) GetPerm() Permission
- func (m *HttpRule) GetPost() string
- func (m *HttpRule) Marshal() (dAtA []byte, err error)
- func (m *HttpRule) MarshalTo(dAtA []byte) (int, error)
- func (m *HttpRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HttpRule) ProtoMessage()
- func (m *HttpRule) Reset()
- func (m *HttpRule) Size() (n int)
- func (m *HttpRule) String() string
- func (m *HttpRule) Unmarshal(dAtA []byte) error
- func (m *HttpRule) XXX_DiscardUnknown()
- func (m *HttpRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HttpRule) XXX_Merge(src proto.Message)
- func (*HttpRule) XXX_OneofWrappers() []interface{}
- func (m *HttpRule) XXX_Size() int
- func (m *HttpRule) XXX_Unmarshal(b []byte) error
- type HttpRule_Get
- type HttpRule_Post
- type Permission
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthPermission = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPermission = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPermission = fmt.Errorf("proto: unexpected end of group") )
View Source
var E_Datarules = &proto.ExtensionDesc{ ExtendedType: (*descriptorpb.ServiceOptions)(nil), ExtensionType: ([]*DataRule)(nil), Field: 8000, Name: "bidewu.datarules", Tag: "bytes,8000,rep,name=datarules", Filename: "permission.proto", }
View Source
var E_Http = &proto.ExtensionDesc{ ExtendedType: (*descriptorpb.MethodOptions)(nil), ExtensionType: (*HttpRule)(nil), Field: 72295628, Name: "bidewu.http", Tag: "bytes,72295628,opt,name=http", Filename: "permission.proto", }
View Source
var Permission_name = map[int32]string{
2: "IgnoreLogin",
1: "LoginWithNoPermission",
0: "NeedPerm",
}
View Source
var Permission_value = map[string]int32{
"IgnoreLogin": 2,
"LoginWithNoPermission": 1,
"NeedPerm": 0,
}
Functions ¶
This section is empty.
Types ¶
type DataRule ¶
type DataRule struct { Code *string `protobuf:"bytes,1,req,name=code" json:"code,omitempty"` Summary *string `protobuf:"bytes,2,req,name=summary" json:"summary,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataRule) Descriptor ¶
func (*DataRule) GetSummary ¶
func (*DataRule) MarshalToSizedBuffer ¶
func (*DataRule) ProtoMessage ¶
func (*DataRule) ProtoMessage()
func (*DataRule) XXX_DiscardUnknown ¶
func (m *DataRule) XXX_DiscardUnknown()
func (*DataRule) XXX_Marshal ¶
func (*DataRule) XXX_Unmarshal ¶
type HttpRule ¶
type HttpRule struct { // Types that are valid to be assigned to Pattern: // *HttpRule_Get // *HttpRule_Post Pattern isHttpRule_Pattern `protobuf_oneof:"pattern"` //权限 Perm *Permission `protobuf:"varint,3,req,name=perm,enum=bidewu.Permission,def=0" json:"perm,omitempty"` // //权限码 // optional string permcode=4; // //权限分类 // optional string permgroup=6; //所属系统 App *string `protobuf:"bytes,5,opt,name=app" json:"app,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HttpRule) Descriptor ¶
func (*HttpRule) GetPattern ¶
func (m *HttpRule) GetPattern() isHttpRule_Pattern
func (*HttpRule) GetPerm ¶
func (m *HttpRule) GetPerm() Permission
func (*HttpRule) MarshalToSizedBuffer ¶
func (*HttpRule) ProtoMessage ¶
func (*HttpRule) ProtoMessage()
func (*HttpRule) XXX_DiscardUnknown ¶
func (m *HttpRule) XXX_DiscardUnknown()
func (*HttpRule) XXX_Marshal ¶
func (*HttpRule) XXX_OneofWrappers ¶
func (*HttpRule) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*HttpRule) XXX_Unmarshal ¶
type HttpRule_Get ¶
type HttpRule_Get struct {
Get string `protobuf:"bytes,1,opt,name=get,oneof" json:"get,omitempty"`
}
func (*HttpRule_Get) MarshalToSizedBuffer ¶
func (m *HttpRule_Get) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HttpRule_Get) Size ¶
func (m *HttpRule_Get) Size() (n int)
type HttpRule_Post ¶
type HttpRule_Post struct {
Post string `protobuf:"bytes,2,opt,name=post,oneof" json:"post,omitempty"`
}
func (*HttpRule_Post) MarshalToSizedBuffer ¶
func (m *HttpRule_Post) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HttpRule_Post) Size ¶
func (m *HttpRule_Post) Size() (n int)
type Permission ¶
type Permission int32
const ( Permission_IgnoreLogin Permission = 2 Permission_LoginWithNoPermission Permission = 1 Permission_NeedPerm Permission = 0 )
const Default_HttpRule_Perm Permission = Permission_NeedPerm
func (Permission) Enum ¶
func (x Permission) Enum() *Permission
func (Permission) EnumDescriptor ¶
func (Permission) EnumDescriptor() ([]byte, []int)
func (Permission) String ¶
func (x Permission) String() string
func (*Permission) UnmarshalJSON ¶
func (x *Permission) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.