go-mstdn/ent/admn/ip.go

17 lines
339 B
Go
Raw Permalink Normal View History

2023-09-26 05:59:13 +00:00
package admn
import (
"github.com/reiver/go-opt"
2023-09-26 05:59:13 +00:00
)
// IP represents a Mastodon API "Admin::Ip".
//
2023-09-28 00:36:36 +00:00
// Note that "ip" means "ip-address" in this context.
//
2023-09-26 05:59:13 +00:00
// See:
// https://docs.joinmastodon.org/entities/Admin_Ip/
type IP struct {
IP opt.Optional[string] `json:"ip"` // ip-address
UsedAt opt.Optional[string] `json:"used_at"`
}