Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeManyOptions ¶ added in v0.1.50
type Client ¶
type Client interface{}
func NewClient ¶
func NewClient(d Dependencies, opts ClientOptions) (Client, error)
type ClientOption ¶
type ClientOption func(*ClientOptions)
func WithAuthorizationTimeout ¶
func WithAuthorizationTimeout(d time.Duration) ClientOption
func WithAuthorizationURL ¶
func WithAuthorizationURL(u *url.URL) ClientOption
func WithUserIDHeaderKey ¶
func WithUserIDHeaderKey(key string) ClientOption
type ClientOptions ¶
type ClientOptions struct {
UserIDHeaderKey string
AuthorizationTimeout time.Duration
AuthorizationURL *url.URL
}
func ApplyClientOptions ¶
func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions
type DeleteOneOptions ¶ added in v0.1.50
type Dependencies ¶
type Dependencies struct {
HD contract.HTTPDoer
HR contract.HTTPRequester
HU contract.HTTPUtil
U contract.Unmarshaler
M contract.Marshaler
}
type Entity ¶
type Entity struct {
ID *primitive.ObjectID `json:"_id,omitempty"`
EntityID *primitive.ObjectID `json:"entity_id"`
Readers *[]primitive.ObjectID `json:"readers"`
Writers *[]primitive.ObjectID `json:"writers"`
Owners *[]primitive.ObjectID `json:"owners"`
}
func (*Entity) SetEntityID ¶
SetEntityID sets the entity ID.
func (*Entity) SetReaders ¶
SetReaders sets the readers.
func (*Entity) SetWriters ¶
SetWriters sets the writers.
type FindOneOptions ¶ added in v0.1.50
type InsertOneOptions ¶ added in v0.1.50
Click to show internal directories.
Click to hide internal directories.