Documentation ¶
Index ¶
Constants ¶
View Source
const ( ElectionDocType = "election" BallotDocType = "ballot" SectionDocType = "section" UserDocType = "user" ElectionID = "election-ID1" ElectionIndex = ElectionDocType + ":" + ElectionID )
docType
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenData ¶
type AccessTokenData struct { Scope []string Claims InjectedParam }
AccessTokenData using by this REST Api (HLF client node) to grant access to the resources
type Asset ¶
type Asset struct { AppraisedValue int `json:"AppraisedValue"` Color string `json:"Color"` ID string `json:"ID"` Owner string `json:"Owner"` Size int `json:"Size"` }
asset de chaincode-go
type GetRequest ¶
type GetRequest struct {
ID string `json:"id"`
}
type GrantIntentResponse ¶
type InjectedParam ¶
type Problem ¶
type Problem struct { Status uint `example:"503"` Title string `example:"err_code"` Detail string `example:"Some error details"` }
Problem api documentation
type User ¶
type User struct { Id string `json:"id"` Passphrase string `json:"passphrase"` Clear string `json:"clear"` Username string `json:"username"` Name string `json:"name"` }
User struct
type UserCredIn ¶
type UserCredIn struct { Username string `example:"zoro@matcom.uh.cu" validate:"required,ascii,gte=3,lte=60"` Password string `example:"my_password" validate:"required,ascii,gte=3,lte=20"` }
This is a example declaring the validation for teh struct. It will be used when the struct is in the endpoint parameters
type UserList ¶
type UserList struct {
Users []User `yaml:"Users"`
}
UserList lUser list of yml file based users
type UserRegister ¶
Click to show internal directories.
Click to hide internal directories.