blob: 7c40cd48caefd3db1028507b799bafebe28245a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package context
type Option func(*Context)
func WithIsDem(isDem bool) Option {
return func(ctx *Context) {
ctx.isDem = isDem
}
}
func WithIsQWD(isQWD bool) Option {
return func(ctx *Context) {
ctx.isQWD = isQWD
}
}
func WithIsMVD(isMVD bool) Option {
return func(ctx *Context) {
ctx.isMVD = isMVD
}
}
func WithProtocolVersion(protocolVersion uint32) Option {
return func(ctx *Context) {
ctx.protocolVersion = protocolVersion
}
}
|