...
1 package shared
2
3 import (
4 "golang.conradwood.net/apis/auth"
5 ge "golang.conradwood.net/apis/goeasyops"
6 "golang.yacloud.eu/apis/session"
7 )
8
9 type emptyLocalState struct {
10 THIS_IS_EMPTY_LOCAL_STATE string
11 }
12
13 func IsEmptyLocalState(ls LocalState) bool {
14 _, f := ls.(*emptyLocalState)
15 return f
16 }
17
18 func newEmptyLocalState() *emptyLocalState {
19 return &emptyLocalState{THIS_IS_EMPTY_LOCAL_STATE: "this is empty local state"}
20 }
21 func (e *emptyLocalState) CreatorService() *auth.SignedUser { return nil }
22 func (e *emptyLocalState) CallingService() *auth.SignedUser { return nil }
23 func (e *emptyLocalState) Debug() bool { return false }
24 func (e *emptyLocalState) Trace() bool { return false }
25 func (e *emptyLocalState) User() *auth.SignedUser { return nil }
26 func (e *emptyLocalState) SudoUser() *auth.SignedUser { return nil }
27 func (e *emptyLocalState) Session() *session.Session { return nil }
28 func (e *emptyLocalState) RequestID() string { return "" }
29 func (e *emptyLocalState) RoutingTags() *ge.CTXRoutingTags { return nil }
30 func (e *emptyLocalState) Info() string { return "EMPTY_LOCALSTATE" }
31 func (e *emptyLocalState) Experiments() []*ge.Experiment { return nil }
32 func (e *emptyLocalState) Services() []*ge.ServiceTrace { return nil }
33 func (e *emptyLocalState) AuthTags() []string { return nil }
34
View as plain text