Get returns a CASBackend entity by its id.
(ctx context.Context, id uuid.UUID)
| 792 | |
| 793 | // Get returns a CASBackend entity by its id. |
| 794 | func (c *CASBackendClient) Get(ctx context.Context, id uuid.UUID) (*CASBackend, error) { |
| 795 | return c.Query().Where(casbackend.ID(id)).Only(ctx) |
| 796 | } |
| 797 | |
| 798 | // GetX is like Get, but panics if an error occurs. |
| 799 | func (c *CASBackendClient) GetX(ctx context.Context, id uuid.UUID) *CASBackend { |