Documentation ¶
Index ¶
- Variables
- func Init()
- func InitKey(dir string) (err error)
- func NewKeyStore(dir string, name string) (ks *_keyStore, err error)
- func NewStoreAdmin() *storeAdmin
- func RsaDecrypt(cipherText []byte, privatekeypath string) (msg []byte, err error)
- func RsaEncrypt(msg []byte, publickeypath string) (cipherText []byte, err error)
- type KeyBean
- func (p *KeyBean) Equals(other *KeyBean) bool
- func (p *KeyBean) GetAdmin() map[string]*UserBean
- func (p *KeyBean) GetClient() map[string]*UserBean
- func (p *KeyBean) GetMq() map[string]*UserBean
- func (p *KeyBean) GetOther() map[string]string
- func (p *KeyBean) IsSetAdmin() bool
- func (p *KeyBean) IsSetClient() bool
- func (p *KeyBean) IsSetMq() bool
- func (p *KeyBean) IsSetOther() bool
- func (p *KeyBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *KeyBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *KeyBean) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *KeyBean) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *KeyBean) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *KeyBean) String() string
- func (p *KeyBean) Validate() error
- func (p *KeyBean) Write(ctx context.Context, oprot thrift.TProtocol) error
- type UserBean
- func (p *UserBean) Equals(other *UserBean) bool
- func (p *UserBean) GetName() string
- func (p *UserBean) GetPwd() string
- func (p *UserBean) GetType() int8
- func (p *UserBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *UserBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *UserBean) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *UserBean) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *UserBean) String() string
- func (p *UserBean) Validate() error
- func (p *UserBean) Write(ctx context.Context, oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyBean_Admin_DEFAULT map[string]*UserBean
View Source
var KeyBean_Client_DEFAULT map[string]*UserBean
View Source
var KeyBean_Mq_DEFAULT map[string]*UserBean
View Source
var KeyBean_Other_DEFAULT map[string]string
View Source
var KeyStore *_keyStore
View Source
var ServerCrt = `` /* 1211-byte string literal not displayed */
View Source
var ServerKey = `` /* 1674-byte string literal not displayed */
View Source
var StoreAdmin = NewStoreAdmin()
Functions ¶
func NewKeyStore ¶
func NewStoreAdmin ¶
func NewStoreAdmin() *storeAdmin
Types ¶
type KeyBean ¶
type KeyBean struct { Admin map[string]*UserBean `thrift:"admin,1" db:"admin" json:"admin,omitempty"` Client map[string]*UserBean `thrift:"client,2" db:"client" json:"client,omitempty"` Mq map[string]*UserBean `thrift:"mq,3" db:"mq" json:"mq,omitempty"` Other map[string]string `thrift:"other,4" db:"other" json:"other,omitempty"` }
Attributes:
- Admin
- Client
- Mq
- Other
func NewKeyBean ¶
func NewKeyBean() *KeyBean
func (*KeyBean) IsSetAdmin ¶
func (*KeyBean) IsSetClient ¶
func (*KeyBean) IsSetOther ¶
func (*KeyBean) ReadField1 ¶
func (*KeyBean) ReadField2 ¶
func (*KeyBean) ReadField3 ¶
func (*KeyBean) ReadField4 ¶
type UserBean ¶
type UserBean struct { Name string `thrift:"name,1,required" db:"name" json:"name"` Pwd string `thrift:"pwd,2,required" db:"pwd" json:"pwd"` Type int8 `thrift:"type,3,required" db:"type" json:"type"` }
Attributes:
- Name
- Pwd
- Type
func NewUserBean ¶
func NewUserBean() *UserBean
func (*UserBean) ReadField1 ¶
func (*UserBean) ReadField2 ¶
func (*UserBean) ReadField3 ¶
Click to show internal directories.
Click to hide internal directories.