Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBuilder ¶
type CommandBuilder struct {
// contains filtered or unexported fields
}
func (*CommandBuilder) RegisterJSON ¶
func (cb *CommandBuilder) RegisterJSON(ctx context.Context) ([]byte, error)
func (*CommandBuilder) SetAppID ¶
func (cb *CommandBuilder) SetAppID(appID string)
func (*CommandBuilder) SetJSON ¶
func (cb *CommandBuilder) SetJSON(json []byte)
func (*CommandBuilder) SetToken ¶
func (cb *CommandBuilder) SetToken(token string)
func (*CommandBuilder) SetURL ¶
func (cb *CommandBuilder) SetURL(url string)
type InteractionReply ¶
type InteractionReply struct { Type int `json:"type"` Data *InteractionReplyData `json:"data"` }
type InteractionReplyData ¶
type InteractionRequest ¶
type InteractionRequest struct { Type int `json:"type"` Data *InteractionRequestData `json:"data"` }
type InteractionRequestData ¶
type InteractionRequestData struct {
Name string `json:"name"`
}
type RequestVerifier ¶
type RequestVerifier struct {
// contains filtered or unexported fields
}
func (*RequestVerifier) SetBodyContent ¶
func (rv *RequestVerifier) SetBodyContent(bc []byte)
func (*RequestVerifier) SetPublicKey ¶
func (rv *RequestVerifier) SetPublicKey(pk []byte)
func (*RequestVerifier) SetSignature ¶
func (rv *RequestVerifier) SetSignature(sg []byte)
func (*RequestVerifier) SetTimestamp ¶
func (rv *RequestVerifier) SetTimestamp(ts []byte)
func (*RequestVerifier) Verify ¶
func (rv *RequestVerifier) Verify() (isVerified bool)
Click to show internal directories.
Click to hide internal directories.