| 1 | package tinyclient |
| 2 | |
| 3 | import ( |
| 4 | "github.com/FelineStateMachine/tinyrelay/internal/policy" |
| 5 | "github.com/FelineStateMachine/tinyrelay/internal/views" |
| 6 | ) |
| 7 | |
| 8 | // Policy contains the relay settings displayed by the client. These aliases |
| 9 | // let embedders implement Backend without importing a relay-internal package. |
| 10 | type Policy = policy.Policy |
| 11 | type Features = policy.Features |
| 12 | type Sites = policy.Sites |
| 13 | type CustomHost = policy.CustomHost |
| 14 | type Succession = policy.Succession |
| 15 | type Notify = policy.Notify |
| 16 | type MemberInvites = policy.MemberInvites |
| 17 | type Delivery = policy.Delivery |
| 18 | type Inbox = policy.Inbox |
| 19 | type FileLimits = policy.FileLimits |
| 20 | type RetentionRule = policy.RetentionRule |
| 21 | |
| 22 | // CustomView describes a fenced-block renderer offered by the backend. |
| 23 | type CustomView = views.View |
| 24 | |
| 25 | // DefaultPolicy returns the standard presentation and feature settings. |
| 26 | func DefaultPolicy(owner string) Policy { return policy.Defaults(owner) } |