gotosocial/vendor/code.superseriousbusiness.org/oauth2/v4/models/client.go

36 lines
527 B
Go
Raw Normal View History

package models
// Client client model
type Client struct {
ID string
Secret string
Domain string
Public bool
UserID string
}
// GetID client id
func (c *Client) GetID() string {
return c.ID
}
// GetSecret client secret
func (c *Client) GetSecret() string {
return c.Secret
}
// GetDomain client domain
func (c *Client) GetDomain() string {
return c.Domain
}
// IsPublic public
func (c *Client) IsPublic() bool {
return c.Public
}
// GetUserID user id
func (c *Client) GetUserID() string {
return c.UserID
}