MCPcopy Create free account
hub / github.com/davecheney/pub / FindByDomain

Method FindByDomain

models/instance.go:47–50  ·  view source on GitHub ↗

FindByDomain finds an instance by domain.

(domain string)

Source from the content-addressed store, hash-verified

45}
46
47// Create creates a new instance, complete with an admin account.
48func (i *Instances) Create(domain, title, description, adminEmail string) (*Instance, error) {
49 var instance Instance
50 err := i.db.Transaction(func(tx *gorm.DB) error {
51
52 kp, err := crypto.GenerateRSAKeypair()
53 if err != nil {

Callers 4

RunMethod · 0.80
RunMethod · 0.80
TestInstancesFunction · 0.80
instancesIndexFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestInstancesFunction · 0.64