Documentation
¶
Index ¶
- Constants
- func ConnectAPI(url, srvtopic string) *nats.Conn
- func EntityRegister(server, identity, token, roles, groups string) (passCd string, status int)
- func EntityRetrieve(server, identity, token string) (resp string, status int)
- func LoginAPI(server, user, passCode string) string
- func RelationRegister(server, identity, token string) (resp string, status int)
- func SetAspect(dopts Dopts, val string)
- func SetCount(dopts Dopts, val bool)
- func SetDomain(dopts Dopts, val string)
- func SetEncryptDataPKey(dopts Dopts, val string)
- func SetEntity(dopts Dopts, val string)
- func SetEntityAccess(dopts Dopts, val string)
- func SetGroups(dopts Dopts, val string)
- func SetMatch(dopts Dopts, val string)
- func SetNoHeaders(dopts Dopts, val bool)
- func SetRDID(dopts Dopts, val string)
- func SetRoles(dopts Dopts, val string)
- func SetTag(dopts Dopts, val string)
- func SetTimestamp(dopts Dopts, val string)
- func SetVal(dopts Dopts, val string)
- func SetWithHeaders(dopts Dopts, val bool)
- func SysAdminRegister(server, identity, passCode, token, roles, groups string) (passCd string, status int)
- type Dopts
- type NATSReqHeader
- type NATSRequest
- type NATSResponse
- type NATSResponseHeader
Constants ¶
View Source
const DefaultServer = "disp-requests"
Variables ¶
This section is empty.
Functions ¶
func ConnectAPI ¶
func EntityRegister ¶
func EntityRetrieve ¶
func RelationRegister ¶
func SetEncryptDataPKey ¶
func SetEntityAccess ¶ added in v0.0.2
func SetNoHeaders ¶
func SetTimestamp ¶
func SetWithHeaders ¶
func SysAdminRegister ¶
Types ¶
type NATSReqHeader ¶
type NATSRequest ¶
type NATSRequest struct {
Header NATSReqHeader `json:"header"`
Body []byte `json:"body"`
}
type NATSResponse ¶
type NATSResponse struct {
Header NATSResponseHeader `json:"header"`
Response string `json:"response"`
}
type NATSResponseHeader ¶
type NATSResponseHeader struct {
Created bool `json:"created,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Path string `json:"path,omitempty"`
Doc string `json:"docId,omitempty"`
DocVersion string `json:"docVersion,omitempty"`
Status int `json:"status"`
ErrorStr string `json:"error_str,omitempty"`
ServerID string `json:"serverID,omitempty"`
Chunks int `json:"chunks,omitempty"`
EncryptedHdr []byte `json:"encrypted_hdr,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.