Documentation ¶
Overview ¶
Package candidtest provides an inmemory candid service for use in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // URL contains the URL where the server is listening. URL string // CACert contains the PEM encoded CA certificate that signed the // server's certificate, if the server is using TLS. CACert []byte // AdminAgentKey contains the key required to authenticate as the // admin agent. AdminAgentKey *bakery.KeyPair // The following fields give access to the stores used by the // candid server. Store store.Store MeetingStore meeting.Store ProviderDataStore store.ProviderDataStore RootKeyStore bakery.RootKeyStore ACLStore aclstore.ACLStore // contains filtered or unexported fields }
func New ¶
New creates a new candid server for use in tests. The server will use a static IDP with the given set of users. The server must be closed when finished with.
func (*Server) AddIdentity ¶
AddIdentity adds a new identity to the server.
Click to show internal directories.
Click to hide internal directories.