MCPcopy Index your code
hub / github.com/git-bug/git-bug / NewAddAdministratorOp

Function NewAddAdministratorOp

entity/dag/example_test.go:112–117  ·  view source on GitHub ↗
(author identity.Interface, toAdd ...identity.Interface)

Source from the content-addressed store, hash-verified

110}
111
112func NewAddAdministratorOp(author identity.Interface, toAdd ...identity.Interface) *AddAdministrator {
113 return &AddAdministrator{
114 OpBase: dag.NewOpBase(AddAdministratorOp, author, time.Now().Unix()),
115 ToAdd: toAdd,
116 }
117}
118
119func (aa *AddAdministrator) Id() entity.Id {
120 // the Id of the operation is the hash of the serialized data.

Callers 1

Example_entityFunction · 0.85

Calls 1

NewOpBaseFunction · 0.92

Tested by

no test coverage detected